home *** CD-ROM | disk | FTP | other *** search
/ Capture the Power of the Internet / Capture the Power of the Internet.iso / mac / MacFiles / Utilities / Programming-Scripting / solarpanel.sit / SolarPanel 3_13_00 / Controls, Buttons / LToolbarButton.cp < prev    next >
MacBinary  |  2000-03-12  |  12.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Mar 12 11:06:40 2000, modified Sun Mar 12 11:06:40 2000, creator 'CWIE', type ASCII, 12309 bytes "LToolbarButton.cp" , at 0x3095 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 4c 54 6f 6f 6c 62 | 61 72 42 75 74 74 6f 6e |..LToolb|arButton|
|00000010| 2e 63 70 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.cp.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 30 15 00 | 00 01 9a b4 f1 71 10 b4 |.....0..|.....q..|
|00000060| f1 71 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.q......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 07 87 00 00 |........|........|
|00000080| 2f 2f 20 4c 54 6f 6f 6c | 62 61 72 42 75 74 74 6f |// LTool|barButto|
|00000090| 6e 2e 68 0d 2f 2f 20 a9 | 20 47 61 62 72 69 65 6c |n.h.// .| Gabriel|
|000000a0| 65 20 64 65 20 53 69 6d | 6f 6e 65 2c 20 31 39 39 |e de Sim|one, 199|
|000000b0| 38 2d 32 30 30 30 0d 2f | 2f 0d 2f 2f 20 55 73 61 |8-2000./|/.// Usa|
|000000c0| 67 65 3a 0d 2f 2f 20 41 | 64 64 20 74 68 65 20 4c |ge:.// A|dd the L|
|000000d0| 54 6f 6f 6c 62 61 72 42 | 75 74 74 6f 6e 2e 43 54 |ToolbarB|utton.CT|
|000000e0| 59 50 20 74 6f 20 79 6f | 75 72 20 22 43 75 73 74 |YP to yo|ur "Cust|
|000000f0| 6f 6d 20 54 79 70 65 73 | 22 20 43 6f 6e 73 74 72 |om Types|" Constr|
|00000100| 75 63 74 6f 72 20 66 6f | 6c 64 65 72 2e 20 41 64 |uctor fo|lder. Ad|
|00000110| 64 0d 2f 2f 20 4c 54 6f | 6f 6c 62 61 72 42 75 74 |d.// LTo|olbarBut|
|00000120| 74 6f 6e 73 20 62 79 20 | 64 72 61 67 67 69 6e 67 |tons by |dragging|
|00000130| 20 74 68 65 6d 20 6f 66 | 66 20 74 68 65 20 22 43 | them of|f the "C|
|00000140| 6f 6e 74 72 6f 6c 73 22 | 20 74 61 62 20 77 69 74 |ontrols"| tab wit|
|00000150| 68 69 6e 20 43 6f 6e 73 | 74 72 75 63 74 6f 72 27 |hin Cons|tructor'|
|00000160| 73 0d 2f 2f 20 63 61 74 | 61 6c 6f 67 20 61 6e 64 |s.// cat|alog and|
|00000170| 20 64 6f 75 62 6c 65 2d | 63 6c 69 63 6b 20 6f 6e | double-|click on|
|00000180| 20 65 61 63 68 20 62 75 | 74 74 6f 6e 20 74 6f 20 | each bu|tton to |
|00000190| 73 65 74 20 73 70 65 63 | 69 66 69 63 20 70 61 72 |set spec|ific par|
|000001a0| 61 6d 65 74 65 72 73 2e | 0d 2f 2f 0d 2f 2f 20 44 |ameters.|.//.// D|
|000001b0| 65 70 65 6e 64 65 6e 63 | 69 65 73 3a 0d 2f 2f 20 |ependenc|ies:.// |
|000001c0| 4c 54 6f 6f 6c 62 61 72 | 42 75 74 74 6f 6e 20 72 |LToolbar|Button r|
|000001d0| 65 71 75 69 72 65 73 20 | 65 69 74 68 65 72 20 4c |equires |either L|
|000001e0| 4d 6f 75 73 65 54 72 61 | 63 6b 65 72 20 6f 72 20 |MouseTra|cker or |
|000001f0| 61 20 4c 54 6f 6f 6c 74 | 69 70 4d 6f 75 73 65 54 |a LToolt|ipMouseT|
|00000200| 72 61 63 6b 65 72 20 74 | 6f 0d 2f 2f 20 69 6d 70 |racker t|o.// imp|
|00000210| 6c 65 6d 65 6e 74 20 69 | 74 73 20 66 75 6c 6c 20 |lement i|ts full |
|00000220| 72 61 6e 67 65 20 6f 66 | 20 6f 70 74 69 6f 6e 73 |range of| options|
|00000230| 28 62 72 6f 77 73 65 72 | 20 73 74 79 6c 65 20 62 |(browser| style b|
|00000240| 75 74 74 6f 6e 73 20 61 | 6e 64 20 64 69 66 66 65 |uttons a|nd diffe|
|00000250| 72 65 6e 74 20 69 63 6f | 6e 73 0d 2f 2f 20 66 6f |rent ico|ns.// fo|
|00000260| 72 20 77 68 65 6e 20 74 | 68 65 20 6d 6f 75 73 65 |r when t|he mouse|
|00000270| 20 69 73 20 6f 76 65 72 | 20 74 68 65 20 62 75 74 | is over| the but|
|00000280| 74 6f 6e 29 2e 0d 2f 2f | 20 54 68 65 20 55 54 68 |ton)..//| The UTh|
|00000290| 65 6d 65 73 20 75 74 69 | 6c 69 74 79 20 63 6c 61 |emes uti|lity cla|
|000002a0| 73 73 20 69 73 20 72 65 | 71 75 69 72 65 64 20 74 |ss is re|quired t|
|000002b0| 6f 20 65 6e 73 75 72 65 | 20 74 68 61 74 20 74 68 |o ensure| that th|
|000002c0| 65 20 62 75 74 74 6f 6e | 73 20 77 69 6c 6c 20 64 |e button|s will d|
|000002d0| 72 61 77 20 69 6e 0d 2f | 2f 20 74 68 65 20 63 6f |raw in./|/ the co|
|000002e0| 72 72 65 63 74 20 77 61 | 79 20 75 6e 64 65 72 20 |rrect wa|y under |
|000002f0| 64 69 66 66 65 72 65 6e | 74 20 41 70 70 65 61 72 |differen|t Appear|
|00000300| 61 6e 63 65 20 74 68 65 | 6d 65 73 2c 20 6f 72 20 |ance the|mes, or |
|00000310| 77 68 65 6e 20 74 68 65 | 20 41 70 70 65 61 72 61 |when the| Appeara|
|00000320| 6e 63 65 20 6d 61 6e 61 | 67 65 72 0d 2f 2f 20 69 |nce mana|ger.// i|
|00000330| 73 20 6e 6f 74 20 61 76 | 61 69 6c 61 62 6c 65 28 |s not av|ailable(|
|00000340| 70 72 65 20 38 2e 30 20 | 73 79 73 74 65 6d 73 29 |pre 8.0 |systems)|
|00000350| 0d 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 4c 54 6f |...#incl|ude "LTo|
|00000360| 6f 6c 62 61 72 42 75 74 | 74 6f 6e 2e 68 22 0d 0d |olbarBut|ton.h"..|
|00000370| 2f 2f 20 50 6f 77 65 72 | 50 6c 61 6e 74 0d 23 69 |// Power|Plant.#i|
|00000380| 6e 63 6c 75 64 65 20 3c | 55 47 72 61 70 68 69 63 |nclude <|UGraphic|
|00000390| 55 74 69 6c 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Utils.h>|.#includ|
|000003a0| 65 20 3c 4c 53 74 72 65 | 61 6d 2e 68 3e 0d 23 69 |e <LStre|am.h>.#i|
|000003b0| 6e 63 6c 75 64 65 20 3c | 55 47 57 6f 72 6c 64 2e |nclude <|UGWorld.|
|000003c0| 68 3e 0d 0d 2f 2f 20 4f | 74 68 65 72 0d 23 69 6e |h>..// O|ther.#in|
|000003d0| 63 6c 75 64 65 20 22 55 | 54 68 65 6d 65 73 2e 68 |clude "U|Themes.h|
|000003e0| 22 0d 0d 0d 2f 2f 20 4c | 54 6f 6f 6c 62 61 72 42 |"...// L|ToolbarB|
|000003f0| 75 74 74 6f 6e 0d 2f 2f | 0d 2f 2f 20 43 61 6c 6c |utton.//|.// Call|
|00000400| 65 64 20 6f 6e 6c 79 20 | 77 68 65 6e 20 6f 62 6a |ed only |when obj|
|00000410| 65 63 74 73 20 61 72 65 | 20 6e 6f 74 20 73 70 65 |ects are| not spe|
|00000420| 63 69 66 69 65 64 20 74 | 68 72 6f 75 67 68 20 61 |cified t|hrough a|
|00000430| 20 50 50 6f 62 20 72 65 | 73 6f 75 72 63 65 2e 20 | PPob re|source. |
|00000440| 49 74 20 69 73 20 76 65 | 72 79 0d 2f 2f 20 75 6e |It is ve|ry.// un|
|00000450| 6c 69 6b 65 6c 79 20 74 | 68 61 74 20 73 75 63 68 |likely t|hat such|
|00000460| 20 61 20 63 6f 6e 73 74 | 72 75 63 74 6f 72 20 77 | a const|ructor w|
|00000470| 6f 75 6c 64 20 62 65 20 | 63 61 6c 6c 65 64 20 73 |ould be |called s|
|00000480| 69 6e 63 65 20 6d 6f 73 | 74 20 6f 70 74 69 6f 6e |ince mos|t option|
|00000490| 73 20 63 61 6e 20 6f 6e | 6c 79 20 62 65 0d 2f 2f |s can on|ly be.//|
|000004a0| 20 73 70 65 63 69 66 69 | 65 64 20 77 69 74 68 69 | specifi|ed withi|
|000004b0| 6e 20 50 6f 77 65 72 50 | 6c 61 6e 74 20 43 6f 6e |n PowerP|lant Con|
|000004c0| 73 74 72 75 63 74 6f 72 | 2e 0d 2f 2f 0d 4c 54 6f |structor|..//.LTo|
|000004d0| 6f 6c 62 61 72 42 75 74 | 74 6f 6e 3a 3a 4c 54 6f |olbarBut|ton::LTo|
|000004e0| 6f 6c 62 61 72 42 75 74 | 74 6f 6e 28 29 0d 7b 0d |olbarBut|ton().{.|
|000004f0| 09 6d 4e 6f 72 6d 61 6c | 49 44 20 09 09 09 3d 20 |.mNormal|ID ...= |
|00000500| 72 65 73 49 44 5f 55 6e | 64 65 66 69 6e 65 64 3b |resID_Un|defined;|
|00000510| 0d 09 6d 50 75 73 68 65 | 64 49 44 20 09 09 09 3d |..mPushe|dID ...=|
|00000520| 20 72 65 73 49 44 5f 55 | 6e 64 65 66 69 6e 65 64 | resID_U|ndefined|
|00000530| 3b 0d 09 6d 43 75 72 72 | 65 6e 74 4e 6f 72 6d 61 |;..mCurr|entNorma|
|00000540| 6c 49 44 20 09 3d 20 72 | 65 73 49 44 5f 55 6e 64 |lID .= r|esID_Und|
|00000550| 65 66 69 6e 65 64 3b 0d | 09 6d 43 75 72 72 65 6e |efined;.|.mCurren|
|00000560| 74 50 75 73 68 65 64 49 | 44 20 09 3d 20 72 65 73 |tPushedI|D .= res|
|00000570| 49 44 5f 55 6e 64 65 66 | 69 6e 65 64 3b 0d 09 6d |ID_Undef|ined;..m|
|00000580| 48 61 73 41 6e 69 6d 61 | 74 69 6f 6e 20 09 09 3d |HasAnima|tion ..=|
|00000590| 20 66 61 6c 73 65 3b 0d | 09 6d 53 74 61 72 74 49 | false;.|.mStartI|
|000005a0| 6d 6d 65 64 69 61 74 65 | 6c 79 20 09 3d 20 66 61 |mmediate|ly .= fa|
|000005b0| 6c 73 65 3b 0d 09 6d 50 | 6c 61 79 57 68 65 6e 49 |lse;..mP|layWhenI|
|000005c0| 6e 61 63 74 69 76 65 20 | 09 3d 20 66 61 6c 73 65 |nactive |.= false|
|000005d0| 3b 0d 09 6d 46 69 72 73 | 74 49 44 20 09 09 09 3d |;..mFirs|tID ...=|
|000005e0| 20 72 65 73 49 44 5f 55 | 6e 64 65 66 69 6e 65 64 | resID_U|ndefined|
|000005f0| 3b 0d 09 6d 4c 61 73 74 | 49 44 20 09 09 09 3d 20 |;..mLast|ID ...= |
|00000600| 72 65 73 49 44 5f 55 6e | 64 65 66 69 6e 65 64 3b |resID_Un|defined;|
|00000610| 0d 09 6d 53 74 65 70 20 | 09 09 09 09 3d 20 30 3b |..mStep |....= 0;|
|00000620| 0d 09 6d 50 75 73 68 65 | 64 20 09 09 09 3d 20 66 |..mPushe|d ...= f|
|00000630| 61 6c 73 65 3b 0d 09 6d | 49 73 42 72 6f 77 73 65 |alse;..m|IsBrowse|
|00000640| 72 53 74 79 6c 65 20 09 | 3d 20 66 61 6c 73 65 3b |rStyle .|= false;|
|00000650| 0d 09 6d 4d 6f 75 73 65 | 49 73 4f 76 65 72 20 09 |..mMouse|IsOver .|
|00000660| 09 3d 20 66 61 6c 73 65 | 3b 0d 09 6d 50 6c 61 79 |.= false|;..mPlay|
|00000670| 57 68 65 6e 4d 6f 75 73 | 65 4f 76 65 72 20 20 3d |WhenMous|eOver =|
|00000680| 20 66 61 6c 73 65 3b 0d | 7d 0d 0d 0d 2f 2f 20 4c | false;.|}...// L|
|00000690| 54 6f 6f 6c 62 61 72 42 | 75 74 74 6f 6e 0d 2f 2f |ToolbarB|utton.//|
|000006a0| 0d 2f 2f 20 43 61 6c 6c | 65 64 20 77 68 65 6e 20 |.// Call|ed when |
|000006b0| 74 68 65 20 6f 62 6a 65 | 63 74 20 69 73 20 63 72 |the obje|ct is cr|
|000006c0| 65 61 74 65 64 20 66 72 | 6f 6d 20 61 20 50 50 6f |eated fr|om a PPo|
|000006d0| 62 20 72 65 73 6f 75 72 | 63 65 2e 20 49 74 20 61 |b resour|ce. It a|
|000006e0| 6c 73 6f 20 73 65 74 73 | 20 74 68 65 20 62 75 74 |lso sets| the but|
|000006f0| 74 6f 6e 0d 2f 2f 20 73 | 74 61 74 65 28 70 75 73 |ton.// s|tate(pus|
|00000700| 68 65 64 2f 6e 6f 72 6d | 61 6c 29 20 74 6f 20 66 |hed/norm|al) to f|
|00000710| 61 6c 73 65 20 61 6e 64 | 20 74 68 65 20 61 6e 69 |alse and| the ani|
|00000720| 6d 61 74 69 6f 6e 20 63 | 69 63 6e 20 49 44 73 28 |mation c|icn IDs(|
|00000730| 69 6e 20 63 61 73 65 20 | 74 68 69 73 20 62 75 74 |in case |this but|
|00000740| 74 6f 6e 20 68 61 73 0d | 2f 2f 20 61 6e 20 61 6e |ton has.|// an an|
|00000750| 69 6d 61 74 69 6f 6e 20 | 61 73 73 6f 63 69 61 74 |imation |associat|
|00000760| 65 64 20 77 69 74 68 20 | 69 74 29 0d 2f 2f 0d 4c |ed with |it).//.L|
|00000770| 54 6f 6f 6c 62 61 72 42 | 75 74 74 6f 6e 3a 3a 4c |ToolbarB|utton::L|
|00000780| 54 6f 6f 6c 62 61 72 42 | 75 74 74 6f 6e 28 0d 09 |ToolbarB|utton(..|
|00000790| 4c 53 74 72 65 61 6d 2a | 20 09 09 69 6e 53 74 72 |LStream*| ..inStr|
|000007a0| 65 61 6d 29 0d 0d 09 3a | 20 4c 43 6f 6e 74 72 6f |eam)...:| LContro|
|000007b0| 6c 28 69 6e 53 74 72 65 | 61 6d 29 0d 7b 0d 09 69 |l(inStre|am).{..i|
|000007c0| 6e 53 74 72 65 61 6d 2d | 3e 52 65 61 64 44 61 74 |nStream-|>ReadDat|
|000007d0| 61 28 26 6d 4e 6f 72 6d | 61 6c 49 44 2c 20 73 69 |a(&mNorm|alID, si|
|000007e0| 7a 65 6f 66 28 52 65 73 | 49 44 54 29 29 3b 0d 09 |zeof(Res|IDT));..|
|000007f0| 69 6e 53 74 72 65 61 6d | 2d 3e 52 65 61 64 44 61 |inStream|->ReadDa|
|00000800| 74 61 28 26 6d 50 75 73 | 68 65 64 49 44 2c 20 73 |ta(&mPus|hedID, s|
|00000810| 69 7a 65 6f 66 28 52 65 | 73 49 44 54 29 29 3b 0d |izeof(Re|sIDT));.|
|00000820| 09 69 6e 53 74 72 65 61 | 6d 2d 3e 52 65 61 64 44 |.inStrea|m->ReadD|
|00000830| 61 74 61 28 26 6d 4d 6f | 75 73 65 4f 76 65 72 49 |ata(&mMo|useOverI|
|00000840| 44 2c 20 73 69 7a 65 6f | 66 28 52 65 73 49 44 54 |D, sizeo|f(ResIDT|
|00000850| 29 29 3b 0d 09 69 6e 53 | 74 72 65 61 6d 2d 3e 52 |));..inS|tream->R|
|00000860| 65 61 64 44 61 74 61 28 | 26 6d 48 61 73 41 6e 69 |eadData(|&mHasAni|
|00000870| 6d 61 74 69 6f 6e 2c 20 | 73 69 7a 65 6f 66 28 42 |mation, |sizeof(B|
|00000880| 6f 6f 6c 65 61 6e 29 29 | 3b 0d 09 69 6e 53 74 72 |oolean))|;..inStr|
|00000890| 65 61 6d 2d 3e 52 65 61 | 64 44 61 74 61 28 26 6d |eam->Rea|dData(&m|
|000008a0| 53 74 61 72 74 49 6d 6d | 65 64 69 61 74 65 6c 79 |StartImm|ediately|
|000008b0| 2c 20 73 69 7a 65 6f 66 | 28 42 6f 6f 6c 65 61 6e |, sizeof|(Boolean|
|000008c0| 29 29 3b 0d 09 69 6e 53 | 74 72 65 61 6d 2d 3e 52 |));..inS|tream->R|
|000008d0| 65 61 64 44 61 74 61 28 | 26 6d 50 6c 61 79 57 68 |eadData(|&mPlayWh|
|000008e0| 65 6e 49 6e 61 63 74 69 | 76 65 2c 20 73 69 7a 65 |enInacti|ve, size|
|000008f0| 6f 66 28 42 6f 6f 6c 65 | 61 6e 29 29 3b 0d 09 69 |of(Boole|an));..i|
|00000900| 6e 53 74 72 65 61 6d 2d | 3e 52 65 61 64 44 61 74 |nStream-|>ReadDat|
|00000910| 61 28 26 6d 46 69 72 73 | 74 49 44 2c 20 73 69 7a |a(&mFirs|tID, siz|
|00000920| 65 6f 66 28 52 65 73 49 | 44 54 29 29 3b 0d 09 69 |eof(ResI|DT));..i|
|00000930| 6e 53 74 72 65 61 6d 2d | 3e 52 65 61 64 44 61 74 |nStream-|>ReadDat|
|00000940| 61 28 26 6d 4c 61 73 74 | 49 44 2c 20 73 69 7a 65 |a(&mLast|ID, size|
|00000950| 6f 66 28 52 65 73 49 44 | 54 29 29 3b 0d 09 69 6e |of(ResID|T));..in|
|00000960| 53 74 72 65 61 6d 2d 3e | 52 65 61 64 44 61 74 61 |Stream->|ReadData|
|00000970| 28 26 6d 53 74 65 70 2c | 20 73 69 7a 65 6f 66 28 |(&mStep,| sizeof(|
|00000980| 55 49 6e 74 33 32 29 29 | 3b 0d 09 69 6e 53 74 72 |UInt32))|;..inStr|
|00000990| 65 61 6d 2d 3e 52 65 61 | 64 44 61 74 61 28 26 6d |eam->Rea|dData(&m|
|000009a0| 49 73 42 72 6f 77 73 65 | 72 53 74 79 6c 65 2c 20 |IsBrowse|rStyle, |
|000009b0| 73 69 7a 65 6f 66 28 42 | 6f 6f 6c 65 61 6e 29 29 |sizeof(B|oolean))|
|000009c0| 3b 0d 09 69 6e 53 74 72 | 65 61 6d 2d 3e 52 65 61 |;..inStr|eam->Rea|
|000009d0| 64 44 61 74 61 28 26 6d | 50 6c 61 79 57 68 65 6e |dData(&m|PlayWhen|
|000009e0| 4d 6f 75 73 65 4f 76 65 | 72 2c 20 73 69 7a 65 6f |MouseOve|r, sizeo|
|000009f0| 66 28 42 6f 6f 6c 65 61 | 6e 29 29 3b 0d 09 0d 09 |f(Boolea|n));....|
|00000a00| 6d 43 75 72 72 65 6e 74 | 4e 6f 72 6d 61 6c 49 44 |mCurrent|NormalID|
|00000a10| 20 09 3d 20 6d 4e 6f 72 | 6d 61 6c 49 44 3b 0d 09 | .= mNor|malID;..|
|00000a20| 6d 43 75 72 72 65 6e 74 | 50 75 73 68 65 64 49 44 |mCurrent|PushedID|
|00000a30| 20 09 3d 20 6d 50 75 73 | 68 65 64 49 44 3b 0d 09 | .= mPus|hedID;..|
|00000a40| 6d 43 75 72 72 65 6e 74 | 4d 6f 75 73 65 4f 76 65 |mCurrent|MouseOve|
|00000a50| 72 49 44 09 3d 20 6d 4d | 6f 75 73 65 4f 76 65 72 |rID.= mM|ouseOver|
|00000a60| 49 44 3b 0d 09 6d 50 75 | 73 68 65 64 20 09 09 09 |ID;..mPu|shed ...|
|00000a70| 3d 20 66 61 6c 73 65 3b | 0d 09 6d 4d 6f 75 73 65 |= false;|..mMouse|
|00000a80| 49 73 4f 76 65 72 20 09 | 09 3d 20 66 61 6c 73 65 |IsOver .|.= false|
|00000a90| 3b 0d 7d 0d 0d 0d 2f 2f | 20 7e 4c 54 6f 6f 6c 62 |;.}...//| ~LToolb|
|00000aa0| 61 72 42 75 74 74 6f 6e | 0d 2f 2f 0d 2f 2f 20 44 |arButton|.//.// D|
|00000ab0| 65 73 74 72 75 63 74 6f | 72 2c 20 65 6d 70 74 79 |estructo|r, empty|
|00000ac0| 0d 2f 2f 09 09 09 09 09 | 09 09 0d 4c 54 6f 6f 6c |.//.....|...LTool|
|00000ad0| 62 61 72 42 75 74 74 6f | 6e 3a 3a 7e 4c 54 6f 6f |barButto|n::~LToo|
|00000ae0| 6c 62 61 72 42 75 74 74 | 6f 6e 28 29 0d 7b 0d 09 |lbarButt|on().{..|
|00000af0| 0d 7d 0d 0d 23 70 72 61 | 67 6d 61 20 6d 61 72 6b |.}..#pra|gma mark|
|00000b00| 20 2d 0d 0d 0d 2f 2f 20 | 53 74 61 72 74 41 6e 69 | -...// |StartAni|
|00000b10| 6d 61 74 69 6f 6e 0d 2f | 2f 0d 2f 2f 20 43 61 6c |mation./|/.// Cal|
|00000b20| 6c 65 64 20 77 68 65 6e | 20 79 6f 75 20 77 61 6e |led when| you wan|
|00000b30| 74 20 74 6f 20 6d 61 6e | 75 61 6c 6c 79 20 63 6f |t to man|ually co|
|00000b40| 6e 74 72 6f 6c 20 74 68 | 65 20 73 74 61 74 75 73 |ntrol th|e status|
|00000b50| 20 6f 66 20 74 68 65 20 | 61 6e 69 6d 61 74 69 6f | of the |animatio|
|00000b60| 6e 3b 20 69 74 20 73 65 | 74 73 20 74 68 65 0d 2f |n; it se|ts the./|
|00000b70| 2f 20 49 44 73 20 6f 66 | 20 74 68 65 20 63 69 63 |/ IDs of| the cic|
|00000b80| 6e 73 20 74 6f 20 74 68 | 65 20 49 44 20 6f 66 20 |ns to th|e ID of |
|00000b90| 74 68 65 20 66 69 72 73 | 74 20 66 72 61 6d 65 28 |the firs|t frame(|
|00000ba0| 73 6f 20 74 68 61 74 20 | 74 68 65 20 63 75 72 72 |so that |the curr|
|00000bb0| 65 6e 74 20 69 63 6f 6e | 20 69 73 20 75 73 65 64 |ent icon| is used|
|00000bc0| 0d 2f 2f 20 77 68 65 6e | 20 74 68 65 20 62 75 74 |.// when| the but|
|00000bd0| 74 6f 6e 20 69 73 20 70 | 72 65 73 73 65 64 29 3b |ton is p|ressed);|
|00000be0| 0d 2f 2f 20 47 65 74 73 | 20 74 68 65 20 63 75 72 |.// Gets| the cur|
|00000bf0| 72 65 6e 74 20 54 69 63 | 6b 43 6f 75 6e 74 20 61 |rent Tic|kCount a|
|00000c00| 6e 64 20 73 74 6f 72 65 | 73 20 69 74 20 69 6e 20 |nd store|s it in |
|00000c10| 74 68 65 20 6d 4f 6c 64 | 54 69 6d 65 20 63 6f 75 |the mOld|Time cou|
|00000c20| 6e 74 65 72 2c 20 61 6e | 64 20 73 74 61 72 74 73 |nter, an|d starts|
|00000c30| 0d 2f 2f 20 49 64 6c 69 | 6e 67 20 74 68 65 20 6f |.// Idli|ng the o|
|00000c40| 62 6a 65 63 74 28 77 68 | 69 63 68 20 69 73 20 61 |bject(wh|ich is a|
|00000c50| 20 4c 50 65 72 69 6f 64 | 69 63 61 6c 29 0d 2f 2f | LPeriod|ical).//|
|00000c60| 20 54 6f 20 68 61 76 65 | 20 6d 6f 72 65 20 63 6f | To have| more co|
|00000c70| 6e 73 74 61 6e 74 20 66 | 72 61 6d 65 72 61 74 65 |nstant f|ramerate|
|00000c80| 20 63 68 61 6e 67 65 20 | 53 74 61 72 74 49 64 6c | change |StartIdl|
|00000c90| 69 6e 67 20 74 6f 20 53 | 74 61 72 74 52 65 70 65 |ing to S|tartRepe|
|00000ca0| 61 74 69 6e 67 28 73 65 | 65 20 0d 2f 2f 20 4c 50 |ating(se|e .// LP|
|00000cb0| 65 72 69 6f 64 69 63 61 | 6c 20 64 6f 63 75 6d 65 |eriodica|l docume|
|00000cc0| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 65 78 70 6c |ntation |for expl|
|00000cd0| 61 6e 61 74 69 6f 6e 73 | 29 0d 2f 2f 0d 76 6f 69 |anations|).//.voi|
|00000ce0| 64 0d 4c 54 6f 6f 6c 62 | 61 72 42 75 74 74 6f 6e |d.LToolb|arButton|
|00000cf0| 3a 3a 53 74 61 72 74 41 | 6e 69 6d 61 74 69 6f 6e |::StartA|nimation|
|00000d00| 28 29 0d 7b 0d 09 69 66 | 20 28 6d 48 61 73 41 6e |().{..if| (mHasAn|
|00000d10| 69 6d 61 74 69 6f 6e 29 | 0d 09 7b 0d 09 09 6d 43 |imation)|..{...mC|
|00000d20| 75 72 72 65 6e 74 4e 6f | 72 6d 61 6c 49 44 20 3d |urrentNo|rmalID =|
|00000d30| 20 6d 46 69 72 73 74 49 | 44 3b 0d 09 09 6d 43 75 | mFirstI|D;...mCu|
|00000d40| 72 72 65 6e 74 50 75 73 | 68 65 64 49 44 20 3d 20 |rrentPus|hedID = |
|00000d50| 6d 46 69 72 73 74 49 44 | 3b 0d 09 09 6d 43 75 72 |mFirstID|;...mCur|
|00000d60| 72 65 6e 74 4d 6f 75 73 | 65 4f 76 65 72 49 44 20 |rentMous|eOverID |
|00000d70| 3d 20 6d 46 69 72 73 74 | 49 44 3b 0d 09 09 0d 09 |= mFirst|ID;.....|
|00000d80| 09 2f 2f 20 46 6f 72 63 | 65 20 66 69 72 73 74 20 |.// Forc|e first |
|00000d90| 66 72 61 6d 65 20 74 6f | 20 64 72 61 77 20 69 6d |frame to| draw im|
|00000da0| 6d 65 64 69 61 74 65 6c | 79 0d 09 09 6d 4f 6c 64 |mediatel|y...mOld|
|00000db0| 54 69 6d 65 20 3d 20 3a | 3a 54 69 63 6b 43 6f 75 |Time = :|:TickCou|
|00000dc0| 6e 74 28 29 20 2d 20 6d | 53 74 65 70 3b 0d 09 09 |nt() - m|Step;...|
|00000dd0| 0d 09 09 53 74 61 72 74 | 49 64 6c 69 6e 67 28 29 |...Start|Idling()|
|00000de0| 3b 0d 09 7d 0d 7d 0d 0d | 0d 2f 2f 20 53 74 6f 70 |;..}.}..|.// Stop|
|00000df0| 41 6e 69 6d 61 74 69 6f | 6e 0d 2f 2f 0d 2f 2f 20 |Animatio|n.//.// |
|00000e00| 53 74 6f 70 73 20 74 68 | 65 20 61 6e 69 6d 61 74 |Stops th|e animat|
|00000e10| 69 6f 6e 20 6f 66 20 74 | 68 65 20 62 75 74 74 6f |ion of t|he butto|
|00000e20| 6e 20 69 66 20 69 74 27 | 73 20 63 75 72 72 65 6e |n if it'|s curren|
|00000e30| 74 6c 79 20 61 6e 69 6d | 61 74 69 6e 67 2e 20 52 |tly anim|ating. R|
|00000e40| 65 73 65 74 73 20 74 68 | 65 20 63 69 63 6e 20 49 |esets th|e cicn I|
|00000e50| 44 73 0d 2f 2f 20 66 6f | 72 20 74 68 65 20 6e 6f |Ds.// fo|r the no|
|00000e60| 72 6d 61 6c 20 61 6e 64 | 20 70 75 73 68 65 64 20 |rmal and| pushed |
|00000e70| 73 74 61 74 65 73 20 74 | 6f 20 74 68 65 20 73 74 |states t|o the st|
|00000e80| 61 6e 64 61 72 64 20 49 | 44 73 28 74 68 65 20 6f |andard I|Ds(the o|
|00000e90| 6e 65 73 20 73 70 65 63 | 69 66 69 65 64 20 69 6e |nes spec|ified in|
|00000ea0| 20 74 68 65 0d 2f 2f 20 | 50 50 6f 62 29 0d 2f 2f | the.// |PPob).//|
|00000eb0| 0d 76 6f 69 64 0d 4c 54 | 6f 6f 6c 62 61 72 42 75 |.void.LT|oolbarBu|
|00000ec0| 74 74 6f 6e 3a 3a 53 74 | 6f 70 41 6e 69 6d 61 74 |tton::St|opAnimat|
|00000ed0| 69 6f 6e 28 29 0d 7b 0d | 09 69 66 20 28 6d 48 61 |ion().{.|.if (mHa|
|00000ee0| 73 41 6e 69 6d 61 74 69 | 6f 6e 29 0d 09 7b 0d 09 |sAnimati|on)..{..|
|00000ef0| 09 6d 43 75 72 72 65 6e | 74 4e 6f 72 6d 61 6c 49 |.mCurren|tNormalI|
|00000f00| 44 20 3d 20 6d 4e 6f 72 | 6d 61 6c 49 44 3b 0d 09 |D = mNor|malID;..|
|00000f10| 09 6d 43 75 72 72 65 6e | 74 50 75 73 68 65 64 49 |.mCurren|tPushedI|
|00000f20| 44 20 3d 20 6d 50 75 73 | 68 65 64 49 44 3b 0d 09 |D = mPus|hedID;..|
|00000f30| 09 6d 43 75 72 72 65 6e | 74 4d 6f 75 73 65 4f 76 |.mCurren|tMouseOv|
|00000f40| 65 72 49 44 20 3d 20 6d | 4d 6f 75 73 65 4f 76 65 |erID = m|MouseOve|
|00000f50| 72 49 44 3b 0d 09 09 0d | 09 09 53 74 6f 70 49 64 |rID;....|..StopId|
|00000f60| 6c 69 6e 67 28 29 3b 0d | 09 09 0d 09 09 44 72 61 |ling();.|.....Dra|
|00000f70| 77 28 6e 69 6c 29 3b 0d | 09 7d 0d 7d 0d 0d 0d 2f |w(nil);.|.}.}.../|
|00000f80| 2f 20 53 70 65 6e 64 54 | 69 6d 65 0d 2f 2f 0d 2f |/ SpendT|ime.//./|
|00000f90| 2f 20 44 65 72 69 76 65 | 64 20 66 72 6f 6d 20 4c |/ Derive|d from L|
|00000fa0| 50 65 72 69 6f 64 69 63 | 61 6c 2c 20 75 73 65 64 |Periodic|al, used|
|00000fb0| 20 66 6f 72 20 61 6e 69 | 6d 61 74 69 6f 6e 2e 20 | for ani|mation. |
|00000fc0| 49 74 20 67 65 74 73 20 | 74 68 65 20 63 75 72 72 |It gets |the curr|
|00000fd0| 65 6e 74 20 74 69 63 6b | 63 6f 75 6e 74 2c 20 63 |ent tick|count, c|
|00000fe0| 68 65 63 6b 73 0d 2f 2f | 20 69 74 20 77 69 74 68 |hecks.//| it with|
|00000ff0| 20 74 68 65 20 73 74 6f | 72 65 64 20 74 69 63 6b | the sto|red tick|
|00001000| 20 63 6f 75 6e 74 28 6d | 4f 6c 64 54 69 6d 65 29 | count(m|OldTime)|
|00001010| 20 61 6e 64 20 69 66 20 | 74 68 65 20 65 6c 61 70 | and if |the elap|
|00001020| 73 65 64 20 74 69 63 6b | 73 20 61 72 65 20 65 71 |sed tick|s are eq|
|00001030| 75 61 6c 20 6f 72 0d 2f | 2f 20 67 72 65 61 74 65 |ual or./|/ greate|
|00001040| 72 20 74 68 61 6e 20 74 | 68 65 20 61 6e 69 6d 61 |r than t|he anima|
|00001050| 74 69 6f 6e 20 66 72 61 | 6d 65 20 74 69 6d 65 28 |tion fra|me time(|
|00001060| 74 68 65 20 6d 53 74 65 | 70 29 2c 20 74 68 65 6e |the mSte|p), then|
|00001070| 20 74 68 65 20 49 44 73 | 20 6f 66 20 74 68 65 20 | the IDs| of the |
|00001080| 63 69 63 6e 73 20 61 72 | 65 20 0d 2f 2f 20 75 70 |cicns ar|e .// up|
|00001090| 64 61 74 65 64 20 61 6e | 64 20 74 68 65 20 6e 65 |dated an|d the ne|
|000010a0| 78 74 20 66 72 61 6d 65 | 20 69 73 20 64 72 61 77 |xt frame| is draw|
|000010b0| 6e 2e 0d 2f 2f 0d 76 6f | 69 64 0d 4c 54 6f 6f 6c |n..//.vo|id.LTool|
|000010c0| 62 61 72 42 75 74 74 6f | 6e 3a 3a 53 70 65 6e 64 |barButto|n::Spend|
|000010d0| 54 69 6d 65 28 0d 09 63 | 6f 6e 73 74 20 45 76 65 |Time(..c|onst Eve|
|000010e0| 6e 74 52 65 63 6f 72 64 | 26 20 09 09 2f 2a 69 6e |ntRecord|& ../*in|
|000010f0| 4d 61 63 45 76 65 6e 74 | 2a 2f 29 0d 7b 0d 09 55 |MacEvent|*/).{..U|
|00001100| 49 6e 74 33 32 09 09 6e | 65 77 54 69 6d 65 20 3d |Int32..n|ewTime =|
|00001110| 20 3a 3a 54 69 63 6b 43 | 6f 75 6e 74 28 29 3b 0d | ::TickC|ount();.|
|00001120| 09 0d 09 69 66 20 28 6e | 65 77 54 69 6d 65 20 2d |...if (n|ewTime -|
|00001130| 20 6d 4f 6c 64 54 69 6d | 65 20 3e 3d 20 6d 53 74 | mOldTim|e >= mSt|
|00001140| 65 70 20 3f 20 6d 4f 6c | 64 54 69 6d 65 20 3d 20 |ep ? mOl|dTime = |
|00001150| 6e 65 77 54 69 6d 65 20 | 3a 20 66 61 6c 73 65 29 |newTime |: false)|
|00001160| 0d 09 7b 0d 09 09 69 66 | 20 28 6d 50 6c 61 79 57 |..{...if| (mPlayW|
|00001170| 68 65 6e 49 6e 61 63 74 | 69 76 65 20 6f 72 20 49 |henInact|ive or I|
|00001180| 73 41 63 74 69 76 65 28 | 29 29 0d 09 09 7b 09 0d |sActive(|))...{..|
|00001190| 09 09 09 6d 43 75 72 72 | 65 6e 74 4e 6f 72 6d 61 |...mCurr|entNorma|
|000011a0| 6c 49 44 20 2b 3d 20 31 | 3b 0d 09 09 09 0d 09 09 |lID += 1|;.......|
|000011b0| 09 69 66 20 28 6d 43 75 | 72 72 65 6e 74 4e 6f 72 |.if (mCu|rrentNor|
|000011c0| 6d 61 6c 49 44 20 3e 20 | 6d 4c 61 73 74 49 44 29 |malID > |mLastID)|
|000011d0| 0d 09 09 09 7b 0d 09 09 | 09 09 6d 43 75 72 72 65 |....{...|..mCurre|
|000011e0| 6e 74 4e 6f 72 6d 61 6c | 49 44 20 3d 20 6d 46 69 |ntNormal|ID = mFi|
|000011f0| 72 73 74 49 44 3b 0d 09 | 09 09 7d 0d 09 09 09 0d |rstID;..|..}.....|
|00001200| 09 09 09 6d 43 75 72 72 | 65 6e 74 50 75 73 68 65 |...mCurr|entPushe|
|00001210| 64 49 44 20 3d 20 6d 43 | 75 72 72 65 6e 74 4e 6f |dID = mC|urrentNo|
|00001220| 72 6d 61 6c 49 44 3b 0d | 09 09 09 6d 43 75 72 72 |rmalID;.|...mCurr|
|00001230| 65 6e 74 4d 6f 75 73 65 | 4f 76 65 72 49 44 20 3d |entMouse|OverID =|
|00001240| 20 6d 43 75 72 72 65 6e | 74 4e 6f 72 6d 61 6c 49 | mCurren|tNormalI|
|00001250| 44 3b 0d 09 09 09 0d 09 | 09 09 44 72 61 77 28 6e |D;......|..Draw(n|
|00001260| 69 6c 29 3b 0d 09 09 7d | 0d 09 7d 0d 7d 0d 0d 0d |il);...}|..}.}...|
|00001270| 23 70 72 61 67 6d 61 20 | 6d 61 72 6b 20 2d 0d 0d |#pragma |mark -..|
|00001280| 0d 2f 2f 20 44 72 61 77 | 53 65 6c 66 0d 2f 2f 0d |.// Draw|Self.//.|
|00001290| 2f 2f 20 43 68 65 63 6b | 73 20 69 66 20 74 68 65 |// Check|s if the|
|000012a0| 20 62 75 74 74 6f 6e 20 | 69 73 20 74 6f 20 62 65 | button |is to be|
|000012b0| 20 64 72 61 77 6e 20 69 | 6e 20 74 68 65 20 6e 6f | drawn i|n the no|
|000012c0| 72 6d 61 6c 20 6f 72 20 | 70 75 73 68 65 64 20 73 |rmal or |pushed s|
|000012d0| 74 61 74 65 20 61 6e 64 | 20 63 61 6c 6c 73 20 74 |tate and| calls t|
|000012e0| 68 65 0d 2f 2f 20 63 6f | 72 72 65 73 70 6f 6e 64 |he.// co|rrespond|
|000012f0| 69 6e 67 20 6d 65 74 68 | 6f 64 20 61 63 63 6f 72 |ing meth|od accor|
|00001300| 64 69 6e 67 6c 79 0d 2f | 2f 0d 76 6f 69 64 0d 4c |dingly./|/.void.L|
|00001310| 54 6f 6f 6c 62 61 72 42 | 75 74 74 6f 6e 3a 3a 44 |ToolbarB|utton::D|
|00001320| 72 61 77 53 65 6c 66 28 | 29 0d 7b 0d 09 69 66 20 |rawSelf(|).{..if |
|00001330| 28 6d 50 75 73 68 65 64 | 20 6f 72 20 6d 56 61 6c |(mPushed| or mVal|
|00001340| 75 65 29 0d 09 7b 0d 09 | 09 44 72 61 77 50 75 73 |ue)..{..|.DrawPus|
|00001350| 68 65 64 28 29 3b 0d 09 | 7d 0d 09 65 6c 73 65 0d |hed();..|}..else.|
|00001360| 09 7b 0d 09 09 44 72 61 | 77 4e 6f 72 6d 61 6c 28 |.{...Dra|wNormal(|
|00001370| 29 3b 0d 09 7d 0d 7d 0d | 0d 0d 2f 2f 20 41 63 74 |);..}.}.|..// Act|
|00001380| 69 76 61 74 65 53 65 6c | 66 0d 2f 2f 0d 2f 2f 20 |ivateSel|f.//.// |
|00001390| 52 65 64 72 61 77 73 20 | 74 68 65 20 63 6f 6e 74 |Redraws |the cont|
|000013a0| 72 6f 6c 0d 2f 2f 0d 76 | 6f 69 64 0d 4c 54 6f 6f |rol.//.v|oid.LToo|
|000013b0| 6c 62 61 72 42 75 74 74 | 6f 6e 3a 3a 41 63 74 69 |lbarButt|on::Acti|
|000013c0| 76 61 74 65 53 65 6c 66 | 28 29 0d 7b 0d 09 44 72 |vateSelf|().{..Dr|
|000013d0| 61 77 28 6e 69 6c 29 3b | 0d 7d 0d 0d 0d 2f 2f 20 |aw(nil);|.}...// |
|000013e0| 44 65 61 63 74 69 76 61 | 74 65 53 65 6c 66 0d 2f |Deactiva|teSelf./|
|000013f0| 2f 0d 2f 2f 20 52 65 64 | 72 61 77 73 20 74 68 65 |/.// Red|raws the|
|00001400| 20 63 6f 6e 74 72 6f 6c | 0d 2f 2f 0d 76 6f 69 64 | control|.//.void|
|00001410| 0d 4c 54 6f 6f 6c 62 61 | 72 42 75 74 74 6f 6e 3a |.LToolba|rButton:|
|00001420| 3a 44 65 61 63 74 69 76 | 61 74 65 53 65 6c 66 28 |:Deactiv|ateSelf(|
|00001430| 29 0d 7b 0d 09 44 72 61 | 77 28 6e 69 6c 29 3b 0d |).{..Dra|w(nil);.|
|00001440| 7d 0d 0d 0d 2f 2f 20 46 | 69 6e 69 73 68 43 72 65 |}...// F|inishCre|
|00001450| 61 74 65 53 65 6c 66 0d | 2f 2f 0d 2f 2f 20 43 68 |ateSelf.|//.// Ch|
|00001460| 65 63 6b 73 20 69 66 20 | 74 68 65 20 61 6e 69 6d |ecks if |the anim|
|00001470| 61 74 69 6f 6e 20 66 6c | 61 67 20 68 61 73 20 62 |ation fl|ag has b|
|00001480| 65 65 6e 20 73 65 74 20 | 61 6e 64 20 73 74 61 72 |een set |and star|
|00001490| 74 73 20 74 68 65 20 61 | 6e 69 6d 61 74 69 6f 6e |ts the a|nimation|
|000014a0| 20 61 63 63 6f 72 64 69 | 6e 67 6c 79 0d 2f 2f 20 | accordi|ngly.// |
|000014b0| 54 68 65 20 66 6c 61 67 | 20 69 73 20 73 70 65 63 |The flag| is spec|
|000014c0| 69 66 69 65 64 20 69 6e | 20 74 68 65 20 50 50 6f |ified in| the PPo|
|000014d0| 62 0d 2f 2f 0d 76 6f 69 | 64 0d 4c 54 6f 6f 6c 62 |b.//.voi|d.LToolb|
|000014e0| 61 72 42 75 74 74 6f 6e | 3a 3a 46 69 6e 69 73 68 |arButton|::Finish|
|000014f0| 43 72 65 61 74 65 53 65 | 6c 66 28 29 0d 7b 0d 09 |CreateSe|lf().{..|
|00001500| 69 66 20 28 6d 53 74 61 | 72 74 49 6d 6d 65 64 69 |if (mSta|rtImmedi|
|00001510| 61 74 65 6c 79 29 0d 09 | 7b 0d 09 09 53 74 61 72 |ately)..|{...Star|
|00001520| 74 41 6e 69 6d 61 74 69 | 6f 6e 28 29 3b 0d 09 7d |tAnimati|on();..}|
|00001530| 0d 7d 0d 0d 0d 2f 2f 20 | 4d 6f 75 73 65 45 6e 74 |.}...// |MouseEnt|
|00001540| 65 72 0d 2f 2f 0d 76 6f | 69 64 0d 4c 54 6f 6f 6c |er.//.vo|id.LTool|
|00001550| 62 61 72 42 75 74 74 6f | 6e 3a 3a 4d 6f 75 73 65 |barButto|n::Mouse|
|00001560| 45 6e 74 65 72 28 0d 09 | 50 6f 69 6e 74 09 09 09 |Enter(..|Point...|
|00001570| 09 2f 2a 20 69 6e 50 6f | 72 74 50 74 20 2a 2f 2c |./* inPo|rtPt */,|
|00001580| 0d 09 63 6f 6e 73 74 20 | 45 76 65 6e 74 52 65 63 |..const |EventRec|
|00001590| 6f 72 64 09 26 2f 2a 20 | 69 6e 4d 61 63 45 76 65 |ord.&/* |inMacEve|
|000015a0| 6e 74 20 2a 2f 29 0d 7b | 0d 09 69 66 20 28 6e 6f |nt */).{|..if (no|
|000015b0| 74 20 6d 4d 6f 75 73 65 | 49 73 4f 76 65 72 29 0d |t mMouse|IsOver).|
|000015c0| 09 7b 0d 09 09 6d 4d 6f | 75 73 65 49 73 4f 76 65 |.{...mMo|useIsOve|
|000015d0| 72 20 3d 20 74 72 75 65 | 3b 0d 09 09 0d 09 09 69 |r = true|;......i|
|000015e0| 66 20 28 6d 50 6c 61 79 | 57 68 65 6e 4d 6f 75 73 |f (mPlay|WhenMous|
|000015f0| 65 4f 76 65 72 29 0d 09 | 09 7b 0d 09 09 09 53 74 |eOver)..|.{....St|
|00001600| 61 72 74 41 6e 69 6d 61 | 74 69 6f 6e 28 29 3b 0d |artAnima|tion();.|
|00001610| 09 09 7d 0d 09 09 65 6c | 73 65 20 69 66 20 28 6d |..}...el|se if (m|
|00001620| 49 73 42 72 6f 77 73 65 | 72 53 74 79 6c 65 0d 09 |IsBrowse|rStyle..|
|00001630| 09 09 09 6f 72 20 28 6d | 43 75 72 72 65 6e 74 4d |...or (m|CurrentM|
|00001640| 6f 75 73 65 4f 76 65 72 | 49 44 20 21 3d 20 6d 43 |ouseOver|ID != mC|
|00001650| 75 72 72 65 6e 74 4e 6f | 72 6d 61 6c 49 44 29 0d |urrentNo|rmalID).|
|00001660| 09 09 09 09 61 6e 64 20 | 49 73 41 63 74 69 76 65 |....and |IsActive|
|00001670| 28 29 29 0d 09 09 7b 0d | 09 09 09 44 72 61 77 28 |())...{.|...Draw(|
|00001680| 6e 69 6c 29 3b 0d 09 09 | 7d 0d 09 7d 0d 7d 0d 0d |nil);...|}..}.}..|
|00001690| 0d 2f 2f 20 4d 6f 75 73 | 65 4c 65 61 76 65 0d 2f |.// Mous|eLeave./|
|000016a0| 2f 0d 76 6f 69 64 0d 4c | 54 6f 6f 6c 62 61 72 42 |/.void.L|ToolbarB|
|000016b0| 75 74 74 6f 6e 3a 3a 4d | 6f 75 73 65 4c 65 61 76 |utton::M|ouseLeav|
|000016c0| 65 28 29 0d 7b 0d 09 69 | 66 20 28 6d 4d 6f 75 73 |e().{..i|f (mMous|
|000016d0| 65 49 73 4f 76 65 72 29 | 0d 09 7b 0d 09 09 6d 4d |eIsOver)|..{...mM|
|000016e0| 6f 75 73 65 49 73 4f 76 | 65 72 20 3d 20 66 61 6c |ouseIsOv|er = fal|
|000016f0| 73 65 3b 0d 09 0d 09 09 | 69 66 20 28 6d 50 6c 61 |se;.....|if (mPla|
|00001700| 79 57 68 65 6e 4d 6f 75 | 73 65 4f 76 65 72 29 0d |yWhenMou|seOver).|
|00001710| 09 09 7b 0d 09 09 09 53 | 74 6f 70 41 6e 69 6d 61 |..{....S|topAnima|
|00001720| 74 69 6f 6e 28 29 3b 0d | 09 09 7d 0d 09 09 65 6c |tion();.|..}...el|
|00001730| 73 65 20 69 66 20 28 6d | 49 73 42 72 6f 77 73 65 |se if (m|IsBrowse|
|00001740| 72 53 74 79 6c 65 20 6f | 72 28 6d 43 75 72 72 65 |rStyle o|r(mCurre|
|00001750| 6e 74 4d 6f 75 73 65 4f | 76 65 72 49 44 20 21 3d |ntMouseO|verID !=|
|00001760| 20 6d 43 75 72 72 65 6e | 74 4e 6f 72 6d 61 6c 49 | mCurren|tNormalI|
|00001770| 44 29 29 0d 09 09 7b 0d | 09 09 09 44 72 61 77 28 |D))...{.|...Draw(|
|00001780| 6e 69 6c 29 3b 0d 09 09 | 7d 0d 09 7d 0d 7d 0d 0d |nil);...|}..}.}..|
|00001790| 23 70 72 61 67 6d 61 20 | 6d 61 72 6b 20 2d 0d 0d |#pragma |mark -..|
|000017a0| 2f 2f 20 54 72 61 63 6b | 48 6f 74 53 70 6f 74 0d |// Track|HotSpot.|
|000017b0| 2f 2f 0d 2f 2f 20 50 6c | 61 79 73 20 74 68 65 20 |//.// Pl|ays the |
|000017c0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 41 70 70 65 |appropri|ate Appe|
|000017d0| 61 72 61 6e 63 65 20 73 | 6f 75 6e 64 20 66 6f 72 |arance s|ound for|
|000017e0| 20 77 68 65 6e 20 61 20 | 62 75 74 74 6f 6e 20 69 | when a |button i|
|000017f0| 73 20 66 69 72 73 74 20 | 70 72 65 73 73 65 64 20 |s first |pressed |
|00001800| 61 6e 64 20 63 61 6c 6c | 73 0d 2f 2f 20 74 68 65 |and call|s.// the|
|00001810| 20 64 65 66 61 75 6c 74 | 20 62 65 68 61 76 69 6f | default| behavio|
|00001820| 75 72 20 69 6e 20 74 68 | 65 20 62 61 73 65 20 63 |ur in th|e base c|
|00001830| 6c 61 73 73 3b 0d 2f 2f | 20 54 68 65 20 6d 50 6c |lass;.//| The mPl|
|00001840| 61 79 53 6f 75 6e 64 20 | 66 6c 61 67 20 69 73 20 |aySound |flag is |
|00001850| 73 65 74 20 74 6f 20 66 | 61 6c 73 65 20 73 6f 20 |set to f|alse so |
|00001860| 74 68 61 74 20 72 65 67 | 75 6c 61 72 20 6d 6f 75 |that reg|ular mou|
|00001870| 73 65 20 74 72 61 63 6b | 69 6e 67 20 77 6f 6e 27 |se track|ing won'|
|00001880| 74 20 70 72 6f 64 75 63 | 65 0d 2f 2f 20 74 68 65 |t produc|e.// the|
|00001890| 20 73 6f 75 6e 64 20 61 | 67 61 69 6e 28 74 68 65 | sound a|gain(the|
|000018a0| 20 66 69 72 73 74 20 74 | 69 6d 65 20 74 68 61 74 | first t|ime that|
|000018b0| 20 6d 65 74 68 6f 64 20 | 69 73 20 63 61 6c 6c 65 | method |is calle|
|000018c0| 64 2c 20 69 2e 65 2e 20 | 72 69 67 68 74 20 61 66 |d, i.e. |right af|
|000018d0| 74 65 72 20 74 68 69 73 | 20 6d 65 74 68 6f 64 29 |ter this| method)|
|000018e0| 0d 2f 2f 0d 42 6f 6f 6c | 65 61 6e 0d 4c 54 6f 6f |.//.Bool|ean.LToo|
|000018f0| 6c 62 61 72 42 75 74 74 | 6f 6e 3a 3a 54 72 61 63 |lbarButt|on::Trac|
|00001900| 6b 48 6f 74 53 70 6f 74 | 28 0d 09 53 49 6e 74 31 |kHotSpot|(..SInt1|
|00001910| 36 20 09 09 09 69 6e 48 | 6f 74 53 70 6f 74 2c 0d |6 ...inH|otSpot,.|
|00001920| 09 50 6f 69 6e 74 20 09 | 09 09 69 6e 50 6f 69 6e |.Point .|..inPoin|
|00001930| 74 2c 0d 09 53 49 6e 74 | 31 36 20 09 09 09 69 6e |t,..SInt|16 ...in|
|00001940| 4d 6f 64 69 66 69 65 72 | 73 29 0d 7b 0d 09 69 66 |Modifier|s).{..if|
|00001950| 20 28 49 73 41 63 74 69 | 76 65 28 29 29 0d 09 7b | (IsActi|ve())..{|
|00001960| 09 0d 09 09 55 54 68 65 | 6d 65 73 3a 3a 50 6c 61 |....UThe|mes::Pla|
|00001970| 79 54 68 65 6d 65 53 6f | 75 6e 64 28 6b 54 68 65 |yThemeSo|und(kThe|
|00001980| 6d 65 53 6f 75 6e 64 42 | 65 76 65 6c 50 72 65 73 |meSoundB|evelPres|
|00001990| 73 29 3b 0d 09 09 0d 09 | 09 6d 50 6c 61 79 53 6f |s);.....|.mPlaySo|
|000019a0| 75 6e 64 20 3d 20 66 61 | 6c 73 65 3b 0d 09 09 0d |und = fa|lse;....|
|000019b0| 09 09 72 65 74 75 72 6e | 20 4c 43 6f 6e 74 72 6f |..return| LContro|
|000019c0| 6c 3a 3a 54 72 61 63 6b | 48 6f 74 53 70 6f 74 28 |l::Track|HotSpot(|
|000019d0| 69 6e 48 6f 74 53 70 6f | 74 2c 20 69 6e 50 6f 69 |inHotSpo|t, inPoi|
|000019e0| 6e 74 2c 20 69 6e 4d 6f | 64 69 66 69 65 72 73 29 |nt, inMo|difiers)|
|000019f0| 3b 0d 09 7d 0d 09 0d 09 | 72 65 74 75 72 6e 20 66 |;..}....|return f|
|00001a00| 61 6c 73 65 3b 0d 7d 0d | 0d 2f 2f 20 48 6f 74 53 |alse;.}.|.// HotS|
|00001a10| 70 6f 74 41 63 74 69 6f | 6e 0d 2f 2f 0d 2f 2f 20 |potActio|n.//.// |
|00001a20| 53 65 74 73 20 74 68 65 | 20 66 6c 61 67 20 66 6f |Sets the| flag fo|
|00001a30| 72 20 70 75 73 68 65 64 | 2f 6e 6f 72 6d 61 6c 20 |r pushed|/normal |
|00001a40| 73 74 61 74 65 20 61 6e | 64 20 72 65 64 72 61 77 |state an|d redraw|
|00001a50| 73 20 74 68 65 20 63 6f | 6e 74 72 6f 6c 2c 20 74 |s the co|ntrol, t|
|00001a60| 68 65 6e 20 70 6c 61 79 | 73 20 74 68 65 0d 2f 2f |hen play|s the.//|
|00001a70| 20 41 70 70 65 61 72 61 | 6e 63 65 20 73 6f 75 6e | Appeara|nce soun|
|00001a80| 64 20 69 66 20 74 68 65 | 20 6d 50 6c 61 79 53 6f |d if the| mPlaySo|
|00001a90| 75 6e 64 20 66 6c 61 67 | 20 69 73 20 74 72 75 65 |und flag| is true|
|00001aa0| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 69 74 20 64 |, otherw|ise it d|
|00001ab0| 6f 65 73 6e 27 74 20 70 | 6c 61 79 20 61 6e 79 20 |oesn't p|lay any |
|00001ac0| 73 6f 75 6e 64 0d 2f 2f | 20 62 75 74 20 69 74 20 |sound.//| but it |
|00001ad0| 73 65 74 73 20 74 68 65 | 20 66 6c 61 67 20 74 6f |sets the| flag to|
|00001ae0| 20 74 72 75 65 20 73 6f | 20 74 68 61 74 20 74 68 | true so| that th|
|00001af0| 65 20 73 6f 75 6e 64 20 | 77 69 6c 6c 20 62 65 20 |e sound |will be |
|00001b00| 70 6c 61 79 65 64 20 74 | 68 65 20 6e 65 78 74 20 |played t|he next |
|00001b10| 74 69 6d 65 20 74 68 69 | 73 20 0d 2f 2f 20 6d 65 |time thi|s .// me|
|00001b20| 74 68 6f 64 20 69 73 20 | 63 61 6c 6c 65 64 28 72 |thod is |called(r|
|00001b30| 65 6d 65 62 65 72 3a 20 | 74 68 65 20 6d 6f 75 73 |emeber: |the mous|
|00001b40| 65 20 69 73 20 62 65 69 | 6e 67 20 74 72 61 63 6b |e is bei|ng track|
|00001b50| 65 64 20 61 6e 64 20 74 | 68 69 73 20 6d 65 74 68 |ed and t|his meth|
|00001b60| 6f 64 20 69 73 20 63 61 | 6c 6c 65 64 0d 2f 2f 20 |od is ca|lled.// |
|00001b70| 65 61 63 68 20 74 69 6d | 65 20 74 68 65 20 6d 6f |each tim|e the mo|
|00001b80| 75 73 65 20 73 74 61 74 | 65 20 63 68 61 6e 67 65 |use stat|e change|
|00001b90| 73 28 69 6e 2f 6f 75 74 | 20 6f 66 20 74 68 65 20 |s(in/out| of the |
|00001ba0| 63 6f 6e 74 72 6f 6c 20 | 72 65 63 74 29 0d 2f 2f |control |rect).//|
|00001bb0| 0d 76 6f 69 64 20 4c 54 | 6f 6f 6c 62 61 72 42 75 |.void LT|oolbarBu|
|00001bc0| 74 74 6f 6e 3a 3a 48 6f | 74 53 70 6f 74 41 63 74 |tton::Ho|tSpotAct|
|00001bd0| 69 6f 6e 28 0d 09 53 49 | 6e 74 31 36 20 09 09 09 |ion(..SI|nt16 ...|
|00001be0| 2f 2a 69 6e 48 6f 74 53 | 70 6f 74 2a 2f 2c 0d 09 |/*inHotS|pot*/,..|
|00001bf0| 42 6f 6f 6c 65 61 6e 20 | 09 09 69 6e 43 75 72 72 |Boolean |..inCurr|
|00001c00| 49 6e 73 69 64 65 2c 0d | 09 42 6f 6f 6c 65 61 6e |Inside,.|.Boolean|
|00001c10| 20 09 09 69 6e 50 72 65 | 76 49 6e 73 69 64 65 29 | ..inPre|vInside)|
|00001c20| 0d 7b 0d 09 69 66 20 28 | 69 6e 43 75 72 72 49 6e |.{..if (|inCurrIn|
|00001c30| 73 69 64 65 20 21 3d 20 | 69 6e 50 72 65 76 49 6e |side != |inPrevIn|
|00001c40| 73 69 64 65 29 0d 09 7b | 09 0d 09 09 69 66 20 28 |side)..{|....if (|
|00001c50| 69 6e 43 75 72 72 49 6e | 73 69 64 65 29 0d 09 09 |inCurrIn|side)...|
|00001c60| 7b 0d 09 09 09 6d 50 75 | 73 68 65 64 20 3d 20 74 |{....mPu|shed = t|
|00001c70| 72 75 65 3b 09 0d 09 0d | 09 09 09 44 72 61 77 28 |rue;....|...Draw(|
|00001c80| 6e 69 6c 29 3b 0d 09 09 | 09 0d 09 09 09 69 66 20 |nil);...|.....if |
|00001c90| 28 6d 50 6c 61 79 53 6f | 75 6e 64 29 0d 09 09 09 |(mPlaySo|und)....|
|00001ca0| 7b 0d 09 09 09 09 55 54 | 68 65 6d 65 73 3a 3a 50 |{.....UT|hemes::P|
|00001cb0| 6c 61 79 54 68 65 6d 65 | 53 6f 75 6e 64 28 6b 54 |layTheme|Sound(kT|
|00001cc0| 68 65 6d 65 53 6f 75 6e | 64 42 65 76 65 6c 45 6e |hemeSoun|dBevelEn|
|00001cd0| 74 65 72 29 3b 0d 09 09 | 09 7d 0d 09 09 09 65 6c |ter);...|.}....el|
|00001ce0| 73 65 0d 09 09 09 7b 0d | 09 09 09 09 6d 50 6c 61 |se....{.|....mPla|
|00001cf0| 79 53 6f 75 6e 64 20 3d | 20 74 72 75 65 3b 0d 09 |ySound =| true;..|
|00001d00| 09 09 7d 0d 09 09 7d 0d | 09 09 65 6c 73 65 0d 09 |..}...}.|..else..|
|00001d10| 09 7b 0d 09 09 09 6d 50 | 75 73 68 65 64 20 3d 20 |.{....mP|ushed = |
|00001d20| 66 61 6c 73 65 3b 0d 09 | 09 0d 09 09 09 44 72 61 |false;..|.....Dra|
|00001d30| 77 28 6e 69 6c 29 3b 0d | 09 09 09 0d 09 09 09 69 |w(nil);.|.......i|
|00001d40| 66 20 28 6d 50 6c 61 79 | 53 6f 75 6e 64 29 0d 09 |f (mPlay|Sound)..|
|00001d50| 09 09 7b 0d 09 09 09 09 | 55 54 68 65 6d 65 73 3a |..{.....|UThemes:|
|00001d60| 3a 50 6c 61 79 54 68 65 | 6d 65 53 6f 75 6e 64 28 |:PlayThe|meSound(|
|00001d70| 6b 54 68 65 6d 65 53 6f | 75 6e 64 42 65 76 65 6c |kThemeSo|undBevel|
|00001d80| 45 78 69 74 29 3b 0d 09 | 09 09 7d 0d 09 09 09 65 |Exit);..|..}....e|
|00001d90| 6c 73 65 0d 09 09 09 7b | 0d 09 09 09 09 6d 50 6c |lse....{|.....mPl|
|00001da0| 61 79 53 6f 75 6e 64 20 | 3d 20 74 72 75 65 3b 0d |aySound |= true;.|
|00001db0| 09 09 09 7d 0d 09 09 7d | 0d 09 7d 0d 7d 0d 0d 2f |...}...}|..}.}../|
|00001dc0| 2f 20 48 6f 74 53 70 6f | 74 52 65 73 75 6c 74 0d |/ HotSpo|tResult.|
|00001dd0| 2f 2f 0d 2f 2f 20 50 6c | 61 79 73 20 74 68 65 20 |//.// Pl|ays the |
|00001de0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 41 70 70 65 |appropri|ate Appe|
|00001df0| 61 72 61 6e 63 65 20 73 | 6f 75 6e 64 20 66 6f 72 |arance s|ound for|
|00001e00| 20 62 75 74 74 6f 6e 20 | 72 65 6c 65 61 73 65 20 | button |release |
|00001e10| 61 6e 64 20 62 72 6f 61 | 64 63 61 73 74 20 74 68 |and broa|dcast th|
|00001e20| 65 0d 2f 2f 20 6d 65 73 | 73 61 67 65 20 61 73 73 |e.// mes|sage ass|
|00001e30| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 69 |ociated |with thi|
|00001e40| 73 20 63 6f 6e 74 72 6f | 6c 0d 2f 2f 0d 76 6f 69 |s contro|l.//.voi|
|00001e50| 64 0d 4c 54 6f 6f 6c 62 | 61 72 42 75 74 74 6f 6e |d.LToolb|arButton|
|00001e60| 3a 3a 48 6f 74 53 70 6f | 74 52 65 73 75 6c 74 28 |::HotSpo|tResult(|
|00001e70| 0d 09 53 49 6e 74 31 36 | 20 09 09 09 2f 2a 20 69 |..SInt16| .../* i|
|00001e80| 6e 48 6f 74 53 70 6f 74 | 20 2a 2f 29 0d 7b 0d 09 |nHotSpot| */).{..|
|00001e90| 55 54 68 65 6d 65 73 3a | 3a 50 6c 61 79 54 68 65 |UThemes:|:PlayThe|
|00001ea0| 6d 65 53 6f 75 6e 64 28 | 6b 54 68 65 6d 65 53 6f |meSound(|kThemeSo|
|00001eb0| 75 6e 64 42 65 76 65 6c | 52 65 6c 65 61 73 65 29 |undBevel|Release)|
|00001ec0| 3b 0d 0d 09 42 72 6f 61 | 64 63 61 73 74 56 61 6c |;...Broa|dcastVal|
|00001ed0| 75 65 4d 65 73 73 61 67 | 65 28 29 3b 0d 7d 0d 0d |ueMessag|e();.}..|
|00001ee0| 2f 2f 20 44 6f 6e 65 54 | 72 61 63 6b 69 6e 67 0d |// DoneT|racking.|
|00001ef0| 2f 2f 0d 2f 2f 20 53 65 | 74 73 20 74 68 65 20 6d |//.// Se|ts the m|
|00001f00| 50 6c 61 79 53 6f 75 6e | 64 20 74 6f 20 66 61 6c |PlaySoun|d to fal|
|00001f10| 73 65 28 69 74 20 69 73 | 20 74 68 65 20 69 6e 69 |se(it is| the ini|
|00001f20| 74 69 61 6c 20 73 74 61 | 74 65 20 72 65 71 75 69 |tial sta|te requi|
|00001f30| 72 65 64 20 62 79 20 74 | 68 65 20 63 6f 6e 74 72 |red by t|he contr|
|00001f40| 6f 6c 20 74 6f 0d 2f 2f | 20 77 6f 72 6b 20 70 72 |ol to.//| work pr|
|00001f50| 6f 70 65 72 6c 79 20 6f | 6e 20 74 68 65 20 6e 65 |operly o|n the ne|
|00001f60| 78 74 20 63 6c 69 63 6b | 29 20 61 6e 64 20 74 68 |xt click|) and th|
|00001f70| 65 6e 20 63 61 6c 6c 73 | 20 74 68 65 20 64 65 66 |en calls| the def|
|00001f80| 61 75 6c 74 20 62 65 68 | 61 76 69 6f 75 72 20 69 |ault beh|aviour i|
|00001f90| 6e 20 74 68 65 20 62 61 | 73 65 0d 2f 2f 20 63 6c |n the ba|se.// cl|
|00001fa0| 61 73 73 0d 2f 2f 0d 76 | 6f 69 64 0d 4c 54 6f 6f |ass.//.v|oid.LToo|
|00001fb0| 6c 62 61 72 42 75 74 74 | 6f 6e 3a 3a 44 6f 6e 65 |lbarButt|on::Done|
|00001fc0| 54 72 61 63 6b 69 6e 67 | 28 0d 09 53 49 6e 74 31 |Tracking|(..SInt1|
|00001fd0| 36 20 09 09 09 69 6e 48 | 6f 74 53 70 6f 74 2c 0d |6 ...inH|otSpot,.|
|00001fe0| 09 42 6f 6f 6c 65 61 6e | 20 09 09 69 6e 47 6f 6f |.Boolean| ..inGoo|
|00001ff0| 64 54 72 61 63 6b 29 0d | 7b 0d 09 6d 50 6c 61 79 |dTrack).|{..mPlay|
|00002000| 53 6f 75 6e 64 20 3d 20 | 66 61 6c 73 65 3b 0d 09 |Sound = |false;..|
|00002010| 0d 09 4c 43 6f 6e 74 72 | 6f 6c 3a 3a 44 6f 6e 65 |..LContr|ol::Done|
|00002020| 54 72 61 63 6b 69 6e 67 | 28 69 6e 48 6f 74 53 70 |Tracking|(inHotSp|
|00002030| 6f 74 2c 20 69 6e 47 6f | 6f 64 54 72 61 63 6b 29 |ot, inGo|odTrack)|
|00002040| 3b 0d 7d 0d 0d 23 70 72 | 61 67 6d 61 20 6d 61 72 |;.}..#pr|agma mar|
|00002050| 6b 20 2d 0d 0d 2f 2f 20 | 44 72 61 77 4e 6f 72 6d |k -..// |DrawNorm|
|00002060| 61 6c 0d 2f 2f 0d 2f 2f | 20 44 72 61 77 73 20 74 |al.//.//| Draws t|
|00002070| 68 65 20 63 6f 6e 74 72 | 6f 6c 20 69 6e 20 69 74 |he contr|ol in it|
|00002080| 73 20 6e 6f 72 6d 61 6c | 20 73 74 61 74 65 28 69 |s normal| state(i|
|00002090| 2e 65 2e 20 77 68 65 6e | 20 74 68 65 20 62 75 74 |.e. when| the but|
|000020a0| 74 6f 6e 20 69 73 20 6e | 6f 74 20 62 65 69 6e 67 |ton is n|ot being|
|000020b0| 20 70 72 65 73 73 65 64 | 29 0d 2f 2f 0d 76 6f 69 | pressed|).//.voi|
|000020c0| 64 0d 4c 54 6f 6f 6c 62 | 61 72 42 75 74 74 6f 6e |d.LToolb|arButton|
|000020d0| 3a 3a 44 72 61 77 4e 6f | 72 6d 61 6c 28 29 0d 7b |::DrawNo|rmal().{|
|000020e0| 0d 09 53 74 54 68 65 6d | 65 53 74 61 74 65 09 09 |..StThem|eState..|
|000020f0| 73 61 76 65 72 3b 0d 09 | 52 65 63 74 09 09 09 09 |saver;..|Rect....|
|00002100| 72 65 63 74 3b 0d 09 43 | 49 63 6f 6e 48 61 6e 64 |rect;..C|IconHand|
|00002110| 6c 65 09 09 09 69 63 6f | 6e 3b 0d 09 62 6f 6f 6c |le...ico|n;..bool|
|00002120| 09 09 09 09 61 63 74 69 | 76 65 20 3d 20 49 73 41 |....acti|ve = IsA|
|00002130| 63 74 69 76 65 28 29 3b | 0d 09 09 0d 09 43 61 6c |ctive();|.....Cal|
|00002140| 63 4c 6f 63 61 6c 46 72 | 61 6d 65 52 65 63 74 28 |cLocalFr|ameRect(|
|00002150| 72 65 63 74 29 3b 0d 09 | 0d 09 53 74 4f 66 66 73 |rect);..|..StOffs|
|00002160| 63 72 65 65 6e 47 57 6f | 72 6c 64 09 6f 66 66 73 |creenGWo|rld.offs|
|00002170| 63 72 65 65 6e 28 72 65 | 63 74 2c 20 73 42 69 74 |creen(re|ct, sBit|
|00002180| 44 65 70 74 68 29 3b 0d | 09 0d 09 55 54 68 65 6d |Depth);.|...UThem|
|00002190| 65 73 3a 3a 53 65 74 54 | 68 65 6d 65 42 61 63 6b |es::SetT|hemeBack|
|000021a0| 67 72 6f 75 6e 64 28 61 | 63 74 69 76 65 20 3f 20 |ground(a|ctive ? |
|000021b0| 6b 54 68 65 6d 65 42 72 | 75 73 68 42 75 74 74 6f |kThemeBr|ushButto|
|000021c0| 6e 46 61 63 65 41 63 74 | 69 76 65 20 3a 20 6b 54 |nFaceAct|ive : kT|
|000021d0| 68 65 6d 65 42 72 75 73 | 68 42 75 74 74 6f 6e 46 |hemeBrus|hButtonF|
|000021e0| 61 63 65 49 6e 61 63 74 | 69 76 65 2c 20 73 42 69 |aceInact|ive, sBi|
|000021f0| 74 44 65 70 74 68 2c 20 | 73 44 65 76 69 63 65 48 |tDepth, |sDeviceH|
|00002200| 61 73 43 6f 6c 6f 72 29 | 3b 0d 09 3a 3a 45 72 61 |asColor)|;..::Era|
|00002210| 73 65 52 65 63 74 28 26 | 72 65 63 74 29 3b 0d 0d |seRect(&|rect);..|
|00002220| 09 69 66 20 28 28 61 63 | 74 69 76 65 20 61 6e 64 |.if ((ac|tive and|
|00002230| 20 6d 4d 6f 75 73 65 49 | 73 4f 76 65 72 29 20 6f | mMouseI|sOver) o|
|00002240| 72 20 6e 6f 74 20 6d 49 | 73 42 72 6f 77 73 65 72 |r not mI|sBrowser|
|00002250| 53 74 79 6c 65 29 0d 09 | 7b 0d 09 09 55 54 68 65 |Style)..|{...UThe|
|00002260| 6d 65 73 3a 3a 53 65 74 | 54 68 65 6d 65 50 65 6e |mes::Set|ThemePen|
|00002270| 28 61 63 74 69 76 65 20 | 3f 20 6b 54 68 65 6d 65 |(active |? kTheme|
|00002280| 42 72 75 73 68 42 75 74 | 74 6f 6e 41 63 74 69 76 |BrushBut|tonActiv|
|00002290| 65 44 61 72 6b 53 68 61 | 64 6f 77 20 3a 20 6b 54 |eDarkSha|dow : kT|
|000022a0| 68 65 6d 65 42 72 75 73 | 68 42 75 74 74 6f 6e 49 |hemeBrus|hButtonI|
|000022b0| 6e 61 63 74 69 76 65 44 | 61 72 6b 53 68 61 64 6f |nactiveD|arkShado|
|000022c0| 77 2c 20 73 42 69 74 44 | 65 70 74 68 2c 20 73 44 |w, sBitD|epth, sD|
|000022d0| 65 76 69 63 65 48 61 73 | 43 6f 6c 6f 72 29 3b 0d |eviceHas|Color);.|
|000022e0| 09 09 55 47 72 61 70 68 | 69 63 55 74 69 6c 73 3a |..UGraph|icUtils:|
|000022f0| 3a 54 6f 70 4c 65 66 74 | 53 69 64 65 28 72 65 63 |:TopLeft|Side(rec|
|00002300| 74 2c 20 30 2c 20 30 2c | 20 31 2c 20 31 29 3b 0d |t, 0, 0,| 1, 1);.|
|00002310| 09 09 0d 09 09 55 54 68 | 65 6d 65 73 3a 3a 53 65 |.....UTh|emes::Se|
|00002320| 74 54 68 65 6d 65 50 65 | 6e 28 61 63 74 69 76 65 |tThemePe|n(active|
|00002330| 20 3f 20 6b 54 68 65 6d | 65 42 72 75 73 68 42 75 | ? kThem|eBrushBu|
|00002340| 74 74 6f 6e 41 63 74 69 | 76 65 4c 69 67 68 74 48 |ttonActi|veLightH|
|00002350| 69 67 68 6c 69 67 68 74 | 20 3a 20 6b 54 68 65 6d |ighlight| : kThem|
|00002360| 65 42 72 75 73 68 42 75 | 74 74 6f 6e 49 6e 61 63 |eBrushBu|ttonInac|
|00002370| 74 69 76 65 4c 69 67 68 | 74 48 69 67 68 6c 69 67 |tiveLigh|tHighlig|
|00002380| 68 74 2c 20 73 42 69 74 | 44 65 70 74 68 2c 20 73 |ht, sBit|Depth, s|
|00002390| 44 65 76 69 63 65 48 61 | 73 43 6f 6c 6f 72 29 3b |DeviceHa|sColor);|
|000023a0| 0d 09 09 55 47 72 61 70 | 68 69 63 55 74 69 6c 73 |...UGrap|hicUtils|
|000023b0| 3a 3a 42 6f 74 74 6f 6d | 52 69 67 68 74 53 69 64 |::Bottom|RightSid|
|000023c0| 65 28 72 65 63 74 2c 20 | 31 2c 20 31 2c 20 30 2c |e(rect, |1, 1, 0,|
|000023d0| 20 30 29 3b 0d 09 09 0d | 09 09 55 54 68 65 6d 65 | 0);....|..UTheme|
|000023e0| 73 3a 3a 53 65 74 54 68 | 65 6d 65 50 65 6e 28 61 |s::SetTh|emePen(a|
|000023f0| 63 74 69 76 65 20 3f 20 | 6b 54 68 65 6d 65 42 72 |ctive ? |kThemeBr|
|00002400| 75 73 68 42 75 74 74 6f | 6e 46 72 61 6d 65 41 63 |ushButto|nFrameAc|
|00002410| 74 69 76 65 20 3a 20 6b | 54 68 65 6d 65 42 72 75 |tive : k|ThemeBru|
|00002420| 73 68 42 75 74 74 6f 6e | 46 72 61 6d 65 49 6e 61 |shButton|FrameIna|
|00002430| 63 74 69 76 65 2c 20 73 | 42 69 74 44 65 70 74 68 |ctive, s|BitDepth|
|00002440| 2c 20 73 44 65 76 69 63 | 65 48 61 73 43 6f 6c 6f |, sDevic|eHasColo|
|00002450| 72 29 3b 0d 09 09 55 47 | 72 61 70 68 69 63 55 74 |r);...UG|raphicUt|
|00002460| 69 6c 73 3a 3a 54 6f 70 | 4c 65 66 74 53 69 64 65 |ils::Top|LeftSide|
|00002470| 28 72 65 63 74 2c 20 31 | 2c 20 31 2c 20 31 2c 20 |(rect, 1|, 1, 1, |
|00002480| 31 29 3b 0d 09 09 55 47 | 72 61 70 68 69 63 55 74 |1);...UG|raphicUt|
|00002490| 69 6c 73 3a 3a 42 6f 74 | 74 6f 6d 52 69 67 68 74 |ils::Bot|tomRight|
|000024a0| 53 69 64 65 28 72 65 63 | 74 2c 20 31 2c 20 31 2c |Side(rec|t, 1, 1,|
|000024b0| 20 31 2c 20 31 29 3b 0d | 09 09 0d 09 09 55 54 68 | 1, 1);.|.....UTh|
|000024c0| 65 6d 65 73 3a 3a 53 65 | 74 54 68 65 6d 65 50 65 |emes::Se|tThemePe|
|000024d0| 6e 28 61 63 74 69 76 65 | 20 3f 20 6b 54 68 65 6d |n(active| ? kThem|
|000024e0| 65 42 72 75 73 68 42 75 | 74 74 6f 6e 41 63 74 69 |eBrushBu|ttonActi|
|000024f0| 76 65 44 61 72 6b 48 69 | 67 68 6c 69 67 68 74 20 |veDarkHi|ghlight |
|00002500| 3a 20 6b 54 68 65 6d 65 | 42 72 75 73 68 42 75 74 |: kTheme|BrushBut|
|00002510| 74 6f 6e 49 6e 61 63 74 | 69 76 65 44 61 72 6b 48 |tonInact|iveDarkH|
|00002520| 69 67 68 6c 69 67 68 74 | 2c 20 73 42 69 74 44 65 |ighlight|, sBitDe|
|00002530| 70 74 68 2c 20 73 44 65 | 76 69 63 65 48 61 73 43 |pth, sDe|viceHasC|
|00002540| 6f 6c 6f 72 29 3b 0d 09 | 09 55 47 72 61 70 68 69 |olor);..|.UGraphi|
|00002550| 63 55 74 69 6c 73 3a 3a | 54 6f 70 4c 65 66 74 53 |cUtils::|TopLeftS|
|00002560| 69 64 65 28 72 65 63 74 | 2c 20 32 2c 20 32 2c 20 |ide(rect|, 2, 2, |
|00002570| 33 2c 20 33 29 3b 0d 09 | 09 0d 09 09 55 54 68 65 |3, 3);..|....UThe|
|00002580| 6d 65 73 3a 3a 53 65 74 | 54 68 65 6d 65 50 65 6e |mes::Set|ThemePen|
|00002590| 28 61 63 74 69 76 65 20 | 3f 20 6b 54 68 65 6d 65 |(active |? kTheme|
|000025a0| 42 72 75 73 68 42 75 74 | 74 6f 6e 41 63 74 69 76 |BrushBut|tonActiv|
|000025b0| 65 44 61 72 6b 53 68 61 | 64 6f 77 20 3a 20 6b 54 |eDarkSha|dow : kT|
|000025c0| 68 65 6d 65 42 72 75 73 | 68 42 75 74 74 6f 6e 49 |hemeBrus|hButtonI|
|000025d0| 6e 61 63 74 69 76 65 44 | 61 72 6b 53 68 61 64 6f |nactiveD|arkShado|
|000025e0| 77 2c 20 73 42 69 74 44 | 65 70 74 68 2c 20 73 44 |w, sBitD|epth, sD|
|000025f0| 65 76 69 63 65 48 61 73 | 43 6f 6c 6f 72 29 3b 0d |eviceHas|Color);.|
|00002600| 09 09 55 47 72 61 70 68 | 69 63 55 74 69 6c 73 3a |..UGraph|icUtils:|
|00002610| 3a 42 6f 74 74 6f 6d 52 | 69 67 68 74 53 69 64 65 |:BottomR|ightSide|
|00002620| 28 72 65 63 74 2c 20 33 | 2c 20 33 2c 20 32 2c 20 |(rect, 3|, 3, 2, |
|00002630| 32 29 3b 0d 09 09 0d 09 | 09 55 54 68 65 6d 65 73 |2);.....|.UThemes|
|00002640| 3a 3a 53 65 74 54 68 65 | 6d 65 50 65 6e 28 61 63 |::SetThe|mePen(ac|
|00002650| 74 69 76 65 20 3f 20 6b | 54 68 65 6d 65 42 72 75 |tive ? k|ThemeBru|
|00002660| 73 68 42 75 74 74 6f 6e | 41 63 74 69 76 65 4c 69 |shButton|ActiveLi|
|00002670| 67 68 74 48 69 67 68 6c | 69 67 68 74 20 3a 20 6b |ghtHighl|ight : k|
|00002680| 54 68 65 6d 65 42 72 75 | 73 68 42 75 74 74 6f 6e |ThemeBru|shButton|
|00002690| 49 6e 61 63 74 69 76 65 | 4c 69 67 68 74 48 69 67 |Inactive|LightHig|
|000026a0| 68 6c 69 67 68 74 2c 20 | 73 42 69 74 44 65 70 74 |hlight, |sBitDept|
|000026b0| 68 2c 20 73 44 65 76 69 | 63 65 48 61 73 43 6f 6c |h, sDevi|ceHasCol|
|000026c0| 6f 72 29 3b 0d 09 09 55 | 47 72 61 70 68 69 63 55 |or);...U|GraphicU|
|000026d0| 74 69 6c 73 3a 3a 54 6f | 70 4c 65 66 74 53 69 64 |tils::To|pLeftSid|
|000026e0| 65 28 72 65 63 74 2c 20 | 33 2c 20 33 2c 20 34 2c |e(rect, |3, 3, 4,|
|000026f0| 20 34 29 3b 0d 09 09 0d | 09 09 55 54 68 65 6d 65 | 4);....|..UTheme|
|00002700| 73 3a 3a 53 65 74 54 68 | 65 6d 65 50 65 6e 28 61 |s::SetTh|emePen(a|
|00002710| 63 74 69 76 65 20 3f 20 | 6b 54 68 65 6d 65 42 72 |ctive ? |kThemeBr|
|00002720| 75 73 68 42 75 74 74 6f | 6e 41 63 74 69 76 65 4c |ushButto|nActiveL|
|00002730| 69 67 68 74 53 68 61 64 | 6f 77 20 3a 20 6b 54 68 |ightShad|ow : kTh|
|00002740| 65 6d 65 42 72 75 73 68 | 42 75 74 74 6f 6e 49 6e |emeBrush|ButtonIn|
|00002750| 61 63 74 69 76 65 4c 69 | 67 68 74 53 68 61 64 6f |activeLi|ghtShado|
|00002760| 77 2c 20 73 42 69 74 44 | 65 70 74 68 2c 20 73 44 |w, sBitD|epth, sD|
|00002770| 65 76 69 63 65 48 61 73 | 43 6f 6c 6f 72 29 3b 0d |eviceHas|Color);.|
|00002780| 09 09 55 47 72 61 70 68 | 69 63 55 74 69 6c 73 3a |..UGraph|icUtils:|
|00002790| 3a 42 6f 74 74 6f 6d 52 | 69 67 68 74 53 69 64 65 |:BottomR|ightSide|
|000027a0| 28 72 65 63 74 2c 20 34 | 2c 20 34 2c 20 33 2c 20 |(rect, 4|, 4, 3, |
|000027b0| 33 29 3b 0d 09 7d 0d 09 | 0d 09 69 63 6f 6e 20 3d |3);..}..|..icon =|
|000027c0| 20 3a 3a 47 65 74 43 49 | 63 6f 6e 28 28 6d 4d 6f | ::GetCI|con((mMo|
|000027d0| 75 73 65 49 73 4f 76 65 | 72 20 61 6e 64 20 61 63 |useIsOve|r and ac|
|000027e0| 74 69 76 65 29 20 3f 20 | 6d 43 75 72 72 65 6e 74 |tive) ? |mCurrent|
|000027f0| 4d 6f 75 73 65 4f 76 65 | 72 49 44 20 3a 20 6d 43 |MouseOve|rID : mC|
|00002800| 75 72 72 65 6e 74 4e 6f | 72 6d 61 6c 49 44 29 3b |urrentNo|rmalID);|
|00002810| 0d 09 0d 09 69 66 20 28 | 69 63 6f 6e 20 21 3d 20 |....if (|icon != |
|00002820| 6e 69 6c 29 0d 09 7b 0d | 09 09 52 65 63 74 09 69 |nil)..{.|..Rect.i|
|00002830| 63 6f 6e 52 65 63 74 20 | 3d 20 47 65 74 49 63 6f |conRect |= GetIco|
|00002840| 6e 52 65 63 74 28 72 65 | 63 74 2c 20 69 63 6f 6e |nRect(re|ct, icon|
|00002850| 29 3b 0d 09 0d 09 09 3a | 3a 50 6c 6f 74 43 49 63 |);.....:|:PlotCIc|
|00002860| 6f 6e 48 61 6e 64 6c 65 | 28 26 69 63 6f 6e 52 65 |onHandle|(&iconRe|
|00002870| 63 74 2c 20 6b 41 6c 69 | 67 6e 4e 6f 6e 65 2c 20 |ct, kAli|gnNone, |
|00002880| 61 63 74 69 76 65 20 3f | 20 6b 54 72 61 6e 73 66 |active ?| kTransf|
|00002890| 6f 72 6d 4e 6f 6e 65 20 | 3a 20 6b 54 72 61 6e 73 |ormNone |: kTrans|
|000028a0| 66 6f 72 6d 44 69 73 61 | 62 6c 65 64 2c 20 69 63 |formDisa|bled, ic|
|000028b0| 6f 6e 29 3b 0d 09 09 3a | 3a 44 69 73 70 6f 73 65 |on);...:|:Dispose|
|000028c0| 43 49 63 6f 6e 28 69 63 | 6f 6e 29 3b 0d 09 7d 0d |CIcon(ic|on);..}.|
|000028d0| 7d 0d 0d 2f 2f 20 44 72 | 61 77 50 75 73 68 65 64 |}..// Dr|awPushed|
|000028e0| 0d 2f 2f 0d 2f 2f 20 44 | 72 61 77 73 20 74 68 65 |.//.// D|raws the|
|000028f0| 20 63 6f 6e 74 72 6f 6c | 20 69 6e 20 69 74 73 20 | control| in its |
|00002900| 70 75 73 68 65 64 20 73 | 74 61 74 65 28 69 2e 65 |pushed s|tate(i.e|
|00002910| 2e 20 77 68 65 6e 20 74 | 68 65 20 62 75 74 74 6f |. when t|he butto|
|00002920| 6e 20 68 61 73 20 62 65 | 65 6e 20 70 72 65 73 73 |n has be|en press|
|00002930| 65 64 20 61 6e 64 20 74 | 68 65 0d 2f 2f 20 6d 6f |ed and t|he.// mo|
|00002940| 75 73 65 20 69 73 20 77 | 69 74 68 69 6e 20 74 68 |use is w|ithin th|
|00002950| 65 20 63 6f 6e 74 72 6f | 6c 20 62 6f 75 6e 64 73 |e contro|l bounds|
|00002960| 29 0d 2f 2f 0d 76 6f 69 | 64 0d 4c 54 6f 6f 6c 62 |).//.voi|d.LToolb|
|00002970| 61 72 42 75 74 74 6f 6e | 3a 3a 44 72 61 77 50 75 |arButton|::DrawPu|
|00002980| 73 68 65 64 28 29 0d 7b | 0d 09 53 74 54 68 65 6d |shed().{|..StThem|
|00002990| 65 53 74 61 74 65 09 73 | 61 76 65 72 3b 0d 09 52 |eState.s|aver;..R|
|000029a0| 65 63 74 09 09 09 72 65 | 63 74 3b 0d 09 43 49 63 |ect...re|ct;..CIc|
|000029b0| 6f 6e 48 61 6e 64 6c 65 | 09 09 69 63 6f 6e 3b 0d |onHandle|..icon;.|
|000029c0| 09 0d 09 43 61 6c 63 4c | 6f 63 61 6c 46 72 61 6d |...CalcL|ocalFram|
|000029d0| 65 52 65 63 74 28 72 65 | 63 74 29 3b 0d 09 09 0d |eRect(re|ct);....|
|000029e0| 09 55 54 68 65 6d 65 73 | 3a 3a 53 65 74 54 68 65 |.UThemes|::SetThe|
|000029f0| 6d 65 42 61 63 6b 67 72 | 6f 75 6e 64 28 6b 54 68 |meBackgr|ound(kTh|
|00002a00| 65 6d 65 42 72 75 73 68 | 42 75 74 74 6f 6e 46 61 |emeBrush|ButtonFa|
|00002a10| 63 65 50 72 65 73 73 65 | 64 2c 20 73 42 69 74 44 |cePresse|d, sBitD|
|00002a20| 65 70 74 68 2c 20 73 44 | 65 76 69 63 65 48 61 73 |epth, sD|eviceHas|
|00002a30| 43 6f 6c 6f 72 29 3b 0d | 09 0d 09 52 65 63 74 09 |Color);.|...Rect.|
|00002a40| 09 09 6f 66 66 73 65 74 | 52 65 63 74 20 3d 20 72 |..offset|Rect = r|
|00002a50| 65 63 74 3b 0d 09 0d 09 | 3a 3a 49 6e 73 65 74 52 |ect;....|::InsetR|
|00002a60| 65 63 74 28 26 6f 66 66 | 73 65 74 52 65 63 74 2c |ect(&off|setRect,|
|00002a70| 20 31 2c 20 31 29 3b 0d | 09 3a 3a 45 72 61 73 65 | 1, 1);.|.::Erase|
|00002a80| 52 65 63 74 28 26 6f 66 | 66 73 65 74 52 65 63 74 |Rect(&of|fsetRect|
|00002a90| 29 3b 0d 0d 09 55 54 68 | 65 6d 65 73 3a 3a 53 65 |);...UTh|emes::Se|
|00002aa0| 74 54 68 65 6d 65 50 65 | 6e 28 6b 54 68 65 6d 65 |tThemePe|n(kTheme|
|00002ab0| 42 72 75 73 68 42 75 74 | 74 6f 6e 41 63 74 69 76 |BrushBut|tonActiv|
|00002ac0| 65 44 61 72 6b 53 68 61 | 64 6f 77 2c 20 73 42 69 |eDarkSha|dow, sBi|
|00002ad0| 74 44 65 70 74 68 2c 20 | 73 44 65 76 69 63 65 48 |tDepth, |sDeviceH|
|00002ae0| 61 73 43 6f 6c 6f 72 29 | 3b 0d 09 55 47 72 61 70 |asColor)|;..UGrap|
|00002af0| 68 69 63 55 74 69 6c 73 | 3a 3a 54 6f 70 4c 65 66 |hicUtils|::TopLef|
|00002b00| 74 53 69 64 65 28 72 65 | 63 74 2c 20 30 2c 20 30 |tSide(re|ct, 0, 0|
|00002b10| 2c 20 31 2c 20 31 29 3b | 0d 09 0d 09 55 54 68 65 |, 1, 1);|....UThe|
|00002b20| 6d 65 73 3a 3a 53 65 74 | 54 68 65 6d 65 50 65 6e |mes::Set|ThemePen|
|00002b30| 28 6b 54 68 65 6d 65 42 | 72 75 73 68 42 75 74 74 |(kThemeB|rushButt|
|00002b40| 6f 6e 41 63 74 69 76 65 | 4c 69 67 68 74 48 69 67 |onActive|LightHig|
|00002b50| 68 6c 69 67 68 74 2c 20 | 73 42 69 74 44 65 70 74 |hlight, |sBitDept|
|00002b60| 68 2c 20 73 44 65 76 69 | 63 65 48 61 73 43 6f 6c |h, sDevi|ceHasCol|
|00002b70| 6f 72 29 3b 0d 09 55 47 | 72 61 70 68 69 63 55 74 |or);..UG|raphicUt|
|00002b80| 69 6c 73 3a 3a 42 6f 74 | 74 6f 6d 52 69 67 68 74 |ils::Bot|tomRight|
|00002b90| 53 69 64 65 28 72 65 63 | 74 2c 20 31 2c 20 31 2c |Side(rec|t, 1, 1,|
|00002ba0| 20 30 2c 20 30 29 3b 0d | 09 0d 09 55 54 68 65 6d | 0, 0);.|...UThem|
|00002bb0| 65 73 3a 3a 53 65 74 54 | 68 65 6d 65 50 65 6e 28 |es::SetT|hemePen(|
|00002bc0| 6b 54 68 65 6d 65 42 72 | 75 73 68 42 75 74 74 6f |kThemeBr|ushButto|
|00002bd0| 6e 46 72 61 6d 65 41 63 | 74 69 76 65 2c 20 73 42 |nFrameAc|tive, sB|
|00002be0| 69 74 44 65 70 74 68 2c | 20 73 44 65 76 69 63 65 |itDepth,| sDevice|
|00002bf0| 48 61 73 43 6f 6c 6f 72 | 29 3b 0d 09 55 47 72 61 |HasColor|);..UGra|
|00002c00| 70 68 69 63 55 74 69 6c | 73 3a 3a 54 6f 70 4c 65 |phicUtil|s::TopLe|
|00002c10| 66 74 53 69 64 65 28 72 | 65 63 74 2c 20 31 2c 20 |ftSide(r|ect, 1, |
|00002c20| 31 2c 20 31 2c 20 31 29 | 3b 0d 09 55 47 72 61 70 |1, 1, 1)|;..UGrap|
|00002c30| 68 69 63 55 74 69 6c 73 | 3a 3a 42 6f 74 74 6f 6d |hicUtils|::Bottom|
|00002c40| 52 69 67 68 74 53 69 64 | 65 28 72 65 63 74 2c 20 |RightSid|e(rect, |
|00002c50| 31 2c 20 31 2c 20 31 2c | 20 31 29 3b 0d 09 0d 09 |1, 1, 1,| 1);....|
|00002c60| 69 63 6f 6e 20 3d 20 3a | 3a 47 65 74 43 49 63 6f |icon = :|:GetCIco|
|00002c70| 6e 28 6d 43 75 72 72 65 | 6e 74 50 75 73 68 65 64 |n(mCurre|ntPushed|
|00002c80| 49 44 29 3b 0d 09 0d 09 | 69 66 20 28 69 63 6f 6e |ID);....|if (icon|
|00002c90| 20 21 3d 20 6e 69 6c 29 | 0d 09 7b 0d 09 09 6f 66 | != nil)|..{...of|
|00002ca0| 66 73 65 74 52 65 63 74 | 20 3d 20 47 65 74 49 63 |fsetRect| = GetIc|
|00002cb0| 6f 6e 52 65 63 74 28 72 | 65 63 74 2c 20 69 63 6f |onRect(r|ect, ico|
|00002cc0| 6e 29 3b 0d 09 09 3a 3a | 4f 66 66 73 65 74 52 65 |n);...::|OffsetRe|
|00002cd0| 63 74 28 26 6f 66 66 73 | 65 74 52 65 63 74 2c 20 |ct(&offs|etRect, |
|00002ce0| 31 2c 20 31 29 3b 0d 09 | 09 3a 3a 50 6c 6f 74 43 |1, 1);..|.::PlotC|
|00002cf0| 49 63 6f 6e 48 61 6e 64 | 6c 65 28 26 6f 66 66 73 |IconHand|le(&offs|
|00002d00| 65 74 52 65 63 74 2c 20 | 6b 41 6c 69 67 6e 4e 6f |etRect, |kAlignNo|
|00002d10| 6e 65 2c 20 6b 54 72 61 | 6e 73 66 6f 72 6d 4e 6f |ne, kTra|nsformNo|
|00002d20| 6e 65 2c 20 69 63 6f 6e | 29 3b 0d 09 09 3a 3a 44 |ne, icon|);...::D|
|00002d30| 69 73 70 6f 73 65 43 49 | 63 6f 6e 28 69 63 6f 6e |isposeCI|con(icon|
|00002d40| 29 3b 0d 09 7d 0d 7d 0d | 0d 0d 23 70 72 61 67 6d |);..}.}.|..#pragm|
|00002d50| 61 20 6d 61 72 6b 20 2d | 0d 0d 0d 2f 2f 20 47 65 |a mark -|...// Ge|
|00002d60| 74 49 63 6f 6e 52 65 63 | 74 0d 2f 2f 0d 2f 2f 20 |tIconRec|t.//.// |
|00002d70| 55 73 65 64 20 69 6e 74 | 65 72 6e 61 6c 6c 79 20 |Used int|ernally |
|00002d80| 62 79 20 74 68 65 20 64 | 72 61 77 69 6e 67 20 6d |by the d|rawing m|
|00002d90| 65 74 68 6f 64 73 2e 20 | 47 69 76 65 6e 20 61 20 |ethods. |Given a |
|00002da0| 63 6f 6e 74 72 6f 6c 20 | 72 65 63 74 20 61 6e 64 |control |rect and|
|00002db0| 20 61 6e 20 69 63 6f 6e | 2c 20 69 74 20 72 65 74 | an icon|, it ret|
|00002dc0| 75 72 6e 73 0d 2f 2f 20 | 61 6e 20 61 70 70 72 6f |urns.// |an appro|
|00002dd0| 70 72 69 61 74 65 20 72 | 65 63 74 20 69 6e 20 77 |priate r|ect in w|
|00002de0| 68 69 63 68 20 74 6f 20 | 64 72 61 77 20 74 68 65 |hich to |draw the|
|00002df0| 20 69 63 6f 6e 2e 20 54 | 68 65 20 69 63 6f 6e 20 | icon. T|he icon |
|00002e00| 68 65 69 67 68 74 20 61 | 6e 64 20 77 69 64 74 68 |height a|nd width|
|00002e10| 20 61 72 65 20 74 61 6b | 65 6e 0d 2f 2f 20 69 6e | are tak|en.// in|
|00002e20| 20 63 6f 6e 73 69 64 65 | 72 61 74 69 6f 6e 20 61 | conside|ration a|
|00002e30| 73 20 77 65 6c 6c 0d 2f | 2f 0d 52 65 63 74 0d 4c |s well./|/.Rect.L|
|00002e40| 54 6f 6f 6c 62 61 72 42 | 75 74 74 6f 6e 3a 3a 47 |ToolbarB|utton::G|
|00002e50| 65 74 49 63 6f 6e 52 65 | 63 74 28 0d 09 63 6f 6e |etIconRe|ct(..con|
|00002e60| 73 74 20 52 65 63 74 20 | 09 09 09 26 69 6e 4c 6f |st Rect |...&inLo|
|00002e70| 63 61 6c 52 65 63 74 2c | 0d 09 43 49 63 6f 6e 48 |calRect,|..CIconH|
|00002e80| 61 6e 64 6c 65 20 09 09 | 69 6e 49 63 6f 6e 29 0d |andle ..|inIcon).|
|00002e90| 7b 0d 09 53 49 6e 74 31 | 36 09 69 63 6f 6e 57 69 |{..SInt1|6.iconWi|
|00002ea0| 64 74 68 20 3d 28 28 2a | 2a 69 6e 49 63 6f 6e 29 |dth =((*|*inIcon)|
|00002eb0| 2e 69 63 6f 6e 50 4d 61 | 70 2e 62 6f 75 6e 64 73 |.iconPMa|p.bounds|
|00002ec0| 2e 72 69 67 68 74 20 2d | 28 2a 2a 69 6e 49 63 6f |.right -|(**inIco|
|00002ed0| 6e 29 2e 69 63 6f 6e 50 | 4d 61 70 2e 62 6f 75 6e |n).iconP|Map.boun|
|00002ee0| 64 73 2e 6c 65 66 74 29 | 3b 0d 09 53 49 6e 74 31 |ds.left)|;..SInt1|
|00002ef0| 36 09 69 63 6f 6e 48 65 | 69 67 68 74 20 3d 28 28 |6.iconHe|ight =((|
|00002f00| 2a 2a 69 6e 49 63 6f 6e | 29 2e 69 63 6f 6e 50 4d |**inIcon|).iconPM|
|00002f10| 61 70 2e 62 6f 75 6e 64 | 73 2e 62 6f 74 74 6f 6d |ap.bound|s.bottom|
|00002f20| 20 2d 28 2a 2a 69 6e 49 | 63 6f 6e 29 2e 69 63 6f | -(**inI|con).ico|
|00002f30| 6e 50 4d 61 70 2e 62 6f | 75 6e 64 73 2e 74 6f 70 |nPMap.bo|unds.top|
|00002f40| 29 3b 0d 09 0d 09 52 65 | 63 74 09 69 63 6f 6e 52 |);....Re|ct.iconR|
|00002f50| 65 63 74 20 3d 20 7b 0d | 09 09 69 6e 4c 6f 63 61 |ect = {.|..inLoca|
|00002f60| 6c 52 65 63 74 2e 74 6f | 70 20 2b 28 28 55 47 72 |lRect.to|p +((UGr|
|00002f70| 61 70 68 69 63 55 74 69 | 6c 73 3a 3a 52 65 63 74 |aphicUti|ls::Rect|
|00002f80| 48 65 69 67 68 74 28 69 | 6e 4c 6f 63 61 6c 52 65 |Height(i|nLocalRe|
|00002f90| 63 74 29 20 2d 20 69 63 | 6f 6e 48 65 69 67 68 74 |ct) - ic|onHeight|
|00002fa0| 29 20 2f 20 32 29 2c 0d | 09 09 69 6e 4c 6f 63 61 |) / 2),.|..inLoca|
|00002fb0| 6c 52 65 63 74 2e 6c 65 | 66 74 20 2b 28 28 55 47 |lRect.le|ft +((UG|
|00002fc0| 72 61 70 68 69 63 55 74 | 69 6c 73 3a 3a 52 65 63 |raphicUt|ils::Rec|
|00002fd0| 74 57 69 64 74 68 28 69 | 6e 4c 6f 63 61 6c 52 65 |tWidth(i|nLocalRe|
|00002fe0| 63 74 29 20 2d 20 69 63 | 6f 6e 57 69 64 74 68 29 |ct) - ic|onWidth)|
|00002ff0| 20 2f 20 32 29 2c 0d 09 | 09 69 6e 4c 6f 63 61 6c | / 2),..|.inLocal|
|00003000| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 2c 0d 09 09 69 |Rect.bot|tom,...i|
|00003010| 6e 4c 6f 63 61 6c 52 65 | 63 74 2e 72 69 67 68 74 |nLocalRe|ct.right|
|00003020| 7d 3b 0d 09 0d 09 69 63 | 6f 6e 52 65 63 74 2e 72 |};....ic|onRect.r|
|00003030| 69 67 68 74 20 3d 20 69 | 63 6f 6e 52 65 63 74 2e |ight = i|conRect.|
|00003040| 6c 65 66 74 20 2b 20 69 | 63 6f 6e 57 69 64 74 68 |left + i|conWidth|
|00003050| 3b 0d 09 69 63 6f 6e 52 | 65 63 74 2e 62 6f 74 74 |;..iconR|ect.bott|
|00003060| 6f 6d 20 3d 20 69 63 6f | 6e 52 65 63 74 2e 74 6f |om = ico|nRect.to|
|00003070| 70 20 2b 20 69 63 6f 6e | 48 65 69 67 68 74 3b 0d |p + icon|Height;.|
|00003080| 09 0d 09 72 65 74 75 72 | 6e 20 69 63 6f 6e 52 65 |...retur|n iconRe|
|00003090| 63 74 3b 0d 7d 00 00 00 | 00 00 00 00 00 00 00 00 |ct;.}...|........|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00003110| 31 39 34 38 00 05 41 40 | 31 39 34 39 00 03 93 2e |1948..A@|1949....|
|00003120| 4f 53 4c 44 69 73 70 6f | 73 65 54 6f 6b 65 6e 5f |OSLDispo|seToken_|
|00003130| 5f 31 34 4c 4d 6f 64 65 | 6c 44 69 72 65 63 74 6f |_14LMode|lDirecto|
|00003140| 72 46 50 36 41 45 44 65 | 73 63 00 07 57 69 6e 54 |rFP6AEDe|sc..WinT|
|00003150| 6f 6b 65 6e 00 05 5f 40 | 31 39 35 37 00 05 60 40 |oken.._@|1957..`@|
|00003160| 31 39 35 38 00 04 7d 2e | 4f 53 4c 43 6f 6d 70 61 |1958..}.|OSLCompa|
|00003170| 72 65 4f 62 6a 65 63 74 | 73 5f 5f 31 34 4c 4d 6f |reObject|s__14LMo|
|00003180| 64 65 6c 44 69 72 65 63 | 74 6f 72 46 55 6c 50 43 |delDirec|torFUlPC|
|00003190| 36 41 45 44 65 73 63 50 | 43 36 41 45 44 65 73 63 |6AEDescP|C6AEDesc|
|000031a0| 50 55 63 00 05 3e 63 6f | 6d 70 61 72 65 4f 62 6a |PUc..>co|mpareObj|
|000031b0| 65 63 74 00 02 8a 62 61 | 73 65 4f 62 6a 65 63 74 |ect...ba|seObject|
|000031c0| 00 05 7e 40 31 39 36 36 | 00 05 7f 40 31 39 36 37 |..~@1966|...@1967|
|000031d0| 00 02 ed 2e 4f 53 4c 43 | 6f 75 6e 74 4f 62 6a 65 |....OSLC|ountObje|
|000031e0| 63 74 73 5f 5f 31 34 4c | 4d 6f 64 65 6c 44 69 72 |cts__14L|ModelDir|
|000031f0| 65 63 74 6f 72 46 55 6c | 55 6c 50 43 36 41 45 44 |ectorFUl|UlPC6AED|
|00003200| 00 00 00 48 00 0c 43 6f | 75 72 69 65 72 00 00 00 |...H..Co|urier...|
|00003210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003220| 00 00 00 00 00 00 00 07 | 00 04 00 2e 00 0a 02 f5 |........|........|
|00003230| 02 8a 00 2e 00 0a 02 f5 | 02 8a b4 f1 38 d0 00 00 |........|....8...|
|00003240| 0d 29 00 00 0d 29 00 00 | 0a 74 01 00 00 00 00 04 |.)...)..|.t......|
|00003250| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00003260| 00 00 00 46 07 17 cd b4 | 02 2a 00 00 00 1c 00 46 |...F....|.*.....F|
|00003270| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00003280| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00003290| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+